Guest User

Untitled

a guest
Jun 22nd, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. def create
  2. eval "
  3. @#{talent_instance_name} = talent_class.new(params[:#{talent_instance_name}])
  4. if @#{talent_instance_name}.save
  5. @user.talents << @#{talent_instance_name}
  6. flash[:notice] = 'Se agregó el talento'
  7. redirect_to(@user)
  8. else
  9. render :action => 'new'
  10. end
  11. "
  12. end
Add Comment
Please, Sign In to add comment