Force Create on scaffold Save

Hello there,

I working on a form, but I would like to save a news version after the
edit form, I changed my form_for to:

<%# form_for(@quote) do |f| %>
<% form_for :quote, :url => { :action => “create” } do |f| %>

but it’s no working, a possible reason is that I have some nested
items on my form, but the save are working well with these items,

my first idea was overwrite the update method like

def update

one last thing, I considered using the acts_as_versioned but I could
not make it work with nested items.

does anybody have any advice here?

thank you very much!


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