On Friday, 10 May 2013 00:40:36 UTC-4, Ruby-Forum.com User wrote:
>
> hi!! i am building a form in ROR but all the values are being stored as 
> null in mysql d/b. 
>
> my view code. 
>
> <%= form_for @user do |f| %> 
>
> user_name: <%= f.text_field :user_name %></br> 
> user_fname: <%= f.text_field :user_fname %></br> 
> user_name: <%= f.text_field :user_lname %></br> 
> <%= f.submit %></br> 
>
> <% end %> 
>
>
Can you verify the schema of your users table? The form written here 
implies that it has columns named "user_name", "user_fname", and 
"user_lname". Is this correct?

--Matt Jones
 

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/SikThYQJkq0J.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to