Controller:
def update_subject
session[:subject] = params[:subject_title]
end
Can anyone tell me if it is OK to use a GET request (default) for this
or do I need to specify a POST, as I am only using this to set a
session variable and not hitting the database?
This action updates session value at cookies in client side. Stub page
will
not be visible, because incoming data will not be rendered on the
screen,
only in the backend.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.