search for: user_presentation

Displaying 1 result from an estimated 1 matches for "user_presentation".

2008 Jan 17
2
Forms, database, and yes I'm new
...ong with my code? --------------------- Model --------------------- class Presentation < ActiveRecord::Base belongs_to :user end --------------------- controller --------------------- class PresentationController < ApplicationController def info @user_login = current_user.login @user_presentation = current_user.presentation.pres end def edit @presentation = current_user.presentation(params[:id]) end def update @presentation = current_user.presentation(params[:id]) if @presentation.update_attributes(params[:pres]) redirect_to :action => ''info'' el...