How can I change some parameters in a function of the controller. I have
a User_Controller, who’s responsible for update the information fields
in the database.
The parameters are “id”, “firstname” and “lastname”. Now, I want to
manipulate parameter “lastname”, because I would like to add at the end
Thomas Miller ----->>> save in the database ------>>> Thomas Miller.
until now, I have the following codelines. But it doesn’t manipulate the
lastname-parameter. Can anyone help to manipulate this parameter?
@user = User.find(params[:id])
flash[:notice] = ‘User was successfully updated.’
redirect_to :action => ‘show’, :id => @user
render :action => ‘edit’
!!! Thanks for your help !!!