hello everybody…
my question is the next…
how can i access to the values of the _form.html if i’m in the
controller in the def update
i need to validate versus a value in a table of the database.
hello everybody…
my question is the next…
how can i access to the values of the _form.html if i’m in the
controller in the def update
i need to validate versus a value in a table of the database.
Josihovo wrote:
hello everybody…
my question is the next…
how can i access to the values of the _form.html if i’m in the
controller in the def update
in the controller you can access the params hash through the params()
method.
def MyController < ApplicationController
def update
foo = params[:bar][:an_attribute]
end
end
Peter
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs