Hi,

I have come into an odd problem that I couldn't figure out why.
Basically, what I did is to save a record from the form, but there's
some field that parsed to the active record returns as nil.

Example:

article = Article.new({"title"=>"halo world","content"=>"lorem ipsum",
"tags"=>"test,article,fun","project_id"=>"1"})
#<Article id:nil, title: "halo world",content:"lorem ipsum", tags:nil,
project_id:nil>

I don't understand why tags and project_id is nil, while I supplied my
data.

My Migration Data

create_table :articles do |t|
      t.string  :title
      t.text  :tags
      t.text  :keyword
      t.text  :content
      t.references :project
end

I am running on ruby 1.8.6 entreprise and rails 2.3.5.

Have someone come across this before. Really need some advise.

Thanks

-- 
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.

Reply via email to