We don't use no Prototype JS.
This commit is contained in:
parent
6d46058c0f
commit
9cf8fdd9cd
2 changed files with 6 additions and 1 deletions
|
|
@ -86,6 +86,11 @@ class ContactsController < ApplicationController
|
|||
def update
|
||||
c = Contact.find(params[:id])
|
||||
c.update_attributes(params[:contact])
|
||||
|
||||
# birthdate comes w/ day + month separated from year
|
||||
c.birth_month = params[:birth_month].to_i if c.birth_month != params[:birth_month]
|
||||
c.birth_day = params[:birth_day].to_i if c.birth_day != params[:birth_day]
|
||||
|
||||
if c.save!
|
||||
flash[:notice] = 'Kontakt aktualisiert.'
|
||||
redirect_to :action => :index
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ ContactORama::Application.configure do
|
|||
|
||||
# Show full error reports and disable caching
|
||||
config.consider_all_requests_local = true
|
||||
config.action_view.debug_rjs = true
|
||||
# config.action_view.debug_rjs = true
|
||||
config.action_controller.perform_caching = false
|
||||
|
||||
# Don't care if the mailer can't send
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue