Displaying 1 result from an estimated 1 matches for "create_group".
2006 Jun 07
0
problem with error_messages_for
...class Group < ActiveRecord::Base
#directionality points to the user model
#this table contains the foreign key
belongs_to :user
validates_uniqueness_of :name
validates_presence_of :name
end
--------------------------------
In the controller I have a method which persists this group
def create_group
...
if( group.save )
logger.debug( "group save successful")
flash[:notice] = ''Created group '' + group.name + '' successfully''
else
logger.debug( "group save unsuccessful")
flash[:notice] = ''Could not save group...