How can i access to file .rhtml from the controller

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