You can't render one action in another. What you should do is put the submit form in a partial (call it _form.html.erb) . See http://railscasts.com/episodes/80 for more info. In both your new and index action you put <%= render :partial => @post %>. Don't forget to instantiate @post in both your index and new controller - @post = Post.new . You ofcourse can also do this in the partial but that's not really MVCish.
I hope this helps. Stijn On 24 nov, 10:01, Petan Cert <[EMAIL PROTECTED]> wrote: > Hi, > > I have a simple sideblog with my posts in it. I can see 5 last posts in > my index action. Could I add form to submit a new post at the top of my > posts? I dont know how to render new post action in my index action to > show the form. THX > -- > Posted viahttp://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

