If you have built your form from an instance variable you can get the
screen values back into an object with:

    @my_object = MyClass.new(params[:my_object])

Then render the view and you should be done.

On Sep 16, 9:10 pm, Matt <mattbog...@gmail.com> wrote:
> Thank you all for your reply. The best was of course to check my
> console as I knew my variables were there before, no clue why I forgot
> about this.
>
> I am not scared to ask another question; I use a form_for to output
> the data fields of a class to the user, I receive this back as a
> param. What is the best way to use this param again as output to data
> fields to the user without actually saving the class?
> I have tried using new/clone but it looks all pretty hacky. The nicest
> solution would be to extract all variables out of the class and handle
> them separately but thats quite some code and so far rails has shown
> that more duplicate code is mostly incorrect.
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to