Forum: Ruby on Rails create entry using another entry

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Mike C. (Guest)
on 2009-04-02 02:27
(Received via mailing list)
I'm wondering what the best practice way to do this is. Basically, I
have a Snippet model containing a text field of type text and a Story
model also with a text field of type text. At some point, I want to
make a story entry using a snippet entry's text.

Passing this using new_story_path(:snippet => @snippet.text) is
troublesome since it passes it through the URL and also is limited to
a certain number of characters. I thought of using another post method
but that seems to go against RESTful practices since new should be a
get action. I also thought of creating a method in the Story model to
take a Snippet object and create the new entry by extracting the
information through the snippet entry. Are there any better ways of
doing this?
This topic is locked and can not be replied to.