Currently, I have an Articles page which creates articles in a DB.
What I would like to do is to return the ID of the submitted article.
I know how to do it with raw sql,
"INSERT INTO test (name) VALUES ('My Name 1') RETURNING id; "
but I was wondering if there is a way to do it, "The Rails Way".
Still very new to RoR.
--
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.