Class: ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Includes:
ActionView::Helpers::JavaScriptHelper, ActionView::Helpers::PrototypeHelper, ActionView::Helpers::ScriptaculousHelper, ActionView::Helpers::TagHelper, ApplicationHelper, Localization, UrlForFix, UserSystem
Defined in:
app/controllers/application.rb

Constant Summary

Constants included from Localization

Localization::LOCALIZED_STRINGS

Class Method Summary collapse

Instance Method Summary collapse

Methods included from ApplicationHelper

#back_or_link_to, #detour?, #display_notice, #h, #image_button_to, #image_detour_to, #image_link_to, #image_link_to_remote, #insert, #record, #resolution_image, #t, #update_task, #with_detour

Methods included from Localization

#l, load_localized_strings, #valid_language?

Constructor Details

#initializeApplicationController

Returns a new instance of ApplicationController.



18
19
20
21
# File 'app/controllers/application.rb', line 18

def initialize
  @application_title = l :backlog
  @application_description = l :backlog_description
end

Class Method Details

.in_place_edit_for(object, attribute, options = {}) ⇒ Object



23
24
25
26
27
28
29
# File 'app/controllers/application.rb', line 23

def self.in_place_edit_for(object, attribute, options = {})
  define_method("set_#{object}_#{attribute}") do
    @item = object.to_s.camelize.constantize.find(params[:id])
    @item.update_attribute(attribute, params[:value])
    render :text => @item.send(attribute).to_s
  end
end