[Rails] Problem with new action 'validate'

2011-04-17 Thread Jose tomas R.
I've created a new action in my invitations controller named validate and validation controller/invitations_controller.rb def validate end def validation @invitation = Invitation.find(params(:key)) if @invitation != nil redirect_to new_client_path, :notice => 'Codigo Aceptado' else fl

[Rails] Problem with new action

2008-10-14 Thread JHuizingh
I'm having issues submitting a form to the create action. In routes I have map.resources :encryption_passphrases This resource is not using an ActiveRecord model, so I can't use the form_for method in the view. In app/views/encryption_passphrases/new.html.erb I have this: <% form_tag(encryp