I am a ruby newbie.
I want to define a parm user something like:
@user.mail = "test@gmail.com"
@user.login = "test"
Then display the value in template
<%= @user.name %>
How to assign the value of mail and login to user?
Or what is the format, content of
@user = User.find(params[:id])
why dont you use a hash ??
you can then access these in view using
add this to your file if you want to use User as object(everthing is object in ruby,userdefined object is a better word)
and then you can use
u can then use this in your view