On 5 May 2013 16:28, rihad <ri...@mail.ru> wrote: > new.html.erb copied from the tutorial as is: > <% form_for :post, url: posts_path do |f| %> > <p> > <%= f.label :title %><br> > <%= f.text_field :title %> > </p> > > <p> > <%= f.label :text %><br> > <%= f.text_area :text %> > </p> > > <p> > <%= f.submit %> > </p> > <% end %> > > I can put <%= "hi" %> before or after form_for, and see it. But not > inside form_for - then I won't see it. Probably because :post is > nonexistent it doesn't get rendered at all.
It seems a bit odd doing this before the model has been generated and the database migrated. I am a bit dubious about whether this guide works as shown. I suggest trying the one at railstutorial.org that I mentioned earlier. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.