Jason Lenhart on 6 Feb 2006 05:20:49 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PhillyOnRails] Simple Form Validation Example


Hi,

I am having a heck of a time trying to do something
simple.

I have a form being populated and have used the
following:

<%= text_field("user", "name", "class" => "field") %>

Note that my user model class is not going to a
database via scaffold - just a class in my models
directory.

When the form is submitted I cannot find a way to get
a handle on the populated user model object.  I dug
through my Rails book to no avail - did not see any
straightforward ways of doing this. 

Also - should I be declaring the instance varialbles
in my user object any special way?

Thanks for any help that can be offered,
Jason
				

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
talk mailing list
talk@phillyonrails.org
http://lists.phillyonrails.org/mailman/listinfo/talk