On May 26, 5:24 am, SpringFlowers AutumnMoon <rails-mailing-
[email protected]> wrote:
>
> this is really great, and and the same time, this looks like magic... i
> found that many books don't explain how the magic occur.  is it by some
> global variable?
>
> when the form_for is called... is it using the @story that came back
> from the @story.save, instead of the �...@story = Story.new  from the new
> action?

You render the new template, but you don't run the new action again:
the @story you display is indeed the one that you tried to save.

Fred
>
> sometimes i feel that i am playing magic when using Ruby on Rails,
> except I don't know how the magic happens...  kind of like if I make the
> rabbit appear, but I don't know how I did it.  So I really want to know
> the inner workings of Rails.
> --
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to