Re: [Rails] [Rails 3.0.9] I have trouble about fields_for
On 25 July 2011 10:07, harashin <haradashinya@gmail.com> wrote:
> Hi,all. I'm new bee to Rails and I have trouble about fields_for
> method..
> It isn't show up between the <%= f.fields ~ <% end %>
>
> Please teach me some advice.
> Thanks!
>
> #new/_form.html.erb
> <%= form_for(@user) do |f| %>
>
> <div class="field">
> <%= f.label :name %><br />
> <%= f.text_field :name %>
> </div>
>
> <!-- Below the code doesn't show up.(<%= f.fields ... <% end %>) -->
>
> <%= f.fields_for :entry do |entry_form| %>
<%= f.fields_for :entries do |entry_form| %>
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home