Hello - Noobie question I'm sure...
I'm trying to pass a session value to a database field 'user' when the user creates a new blog entry. The session value is created when the user logs on to the site. I have this in the view to create a new blog entry: <%= f.text_field :user, :value => session[:name], :disabled => true %> but it fails validation when I create the entry (validates_presence_of :user). Is there a way for me to store the session value into my database field 'user' when the user creates the new entry (and prevent the user from manipulating the value)? Many thanks, Mark --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

