You may have to supply some code, as render :action => :add should work. Do the variables have the same names? Are there any variables set in the "add" action that aren't getting set in the "create" action? Rendering an action does not run its controller code, only renders its view template.
On May 14, 8:15 am, Pix <[email protected]> wrote: > I have a view that is a form in add.html.erb and in the create method > in the controller I have validation check if everything in the form is > set. If validation finds an error, I do > > render :action => :add > > and all the set values are lost. > > if I just do "render" or nothing, it defaults to the create view. > Obviously redirect to add didn't work either. > > More suggestions? > > -- > 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 > athttp://groups.google.com/group/rubyonrails-talk?hl=en. -- 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.

