6
otrzymuję błąd:Missing Częściowa Błąd w Rails 3
Missing partial post/questions, application/questions with
{:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :coffee]}.
Searched in:* "/Users/..../<project name>/app/views"
Starałem się uczynić wszystkie posty w bazie danych index.html.erb
.
Moim zdaniem jest to post/index.html.erb
:
<!--html codes -->
<%= render 'questions' %>
Controller controller/post_controller.rb
: Nazwy plików
def index
@posts=Post.all
end
def questions
end
questions.html.erb
<%[email protected] do |post| %>
<table>
<tr>
<td>
<h2>
<%=post.title%>
</h2>
</td>
</tr>
<tr>
<td>
<h3><%=post.body%></h3>
</td>
</tr>
<tr>
<td>
This Post comes under:<h4><%=post.tag%></h4>
</td>
</tr>
</table>
thnks .... to działa. – Cyber
bez problemu! proszę "zaakceptuj" odpowiedź. – cdesrosiers
miał podobny problem ... zapomniał o rozszerzeniach .html.erb. .rb nie działa lol –