Create entry using another entry

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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs