Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def create
- @postulante = Postulante.find_by_id(session[:user_id])
- @personal = Personal.new(params[:personal])
- @personal.postulante = @postulante
- respond_to do |format|
- if @personal.save
- format.html {
- render :update do |page|
- page.replace_html :area_trabajo, :partial => 'ficha'
- page.visual_effect :highlight, :area_trabajo
- end
- }
- else
- format.html {
- render :update do |page|
- page.replace_html :area_trabajo, :partial => 'new_form'
- end
- }
- end
- end
- end
Add Comment
Please, Sign In to add comment