Ralph Shnelvar wrote:
> Newb here.
> 
> I have a form and a value that is being displayed ... and I have no idea
> where the value came from.
> 
> I have done a
>   <%= debugger; '' %>
> in the form and, indeed, the debugger stops at the statement.
> 
> I have tried to trace through the code to see where the value came from
> ... and I gave up.
> 

You're going to have to describe the problem in more detail, with actual 
code, if you want help.  And what do your tests say?

> 
> 
> 
> So ... what in Rails initializes the fields of a form?

If you're using form_for -- and you didn't say if you were! -- then the 
form is initialized from the supplied model object.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org
-- 
Posted via http://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 rubyonrails-t...@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