Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def create
- eval "
- @#{talent_instance_name} = talent_class.new(params[:#{talent_instance_name}])
- if @#{talent_instance_name}.save
- @user.talents << @#{talent_instance_name}
- flash[:notice] = 'Se agregó el talento'
- redirect_to(@user)
- else
- render :action => 'new'
- end
- "
- end
Add Comment
Please, Sign In to add comment