controller_name
holds the name of the controller used to serve the current view.
More Related Contents:
- How to rename rails controller and model in a project
- Ruby on Rails Best practices – Big Controller vs Small Controller
- How to change the default path of view files in a Rails 3 controller?
- Rails Model, View, Controller, and Helper: what goes where?
- Rails: Skinny Controller vs. Fat Model, or should I make my Controller Anorexic?
- What is MVC in Ruby on Rails?
- Rails action caching with querystring parameters
- Format a string containing Phone numbers
- How to understand nil vs. empty vs. blank in Ruby
- Random record in ActiveRecord
- accepts_nested_attributes_for with find_or_create?
- Rails 4: List of available datatypes
- How to create a deep copy of an object in Ruby?
- Rails: Access to current_user from within a model in Ruby on Rails
- Ruby 2.4 and Rails 4 stack level too deep (SystemStackError)
- Custom authentication strategy for devise
- Storing arrays in database : JSON vs. serialized array
- Ruby: SQLite3::BusyException: database is locked:
- Using Process.spawn as a replacement for Process.fork
- How do you write a migration to rename an ActiveRecord model and its table in Rails?
- Rails update_attributes without save?
- Setting Environment Variables in Rails 3 (Devise + Omniauth)
- Converting an array of objects to ActiveRecord::Relation
- Rails not reloading session on ajax post
- How to specify a prefix when uploading to S3 using activestorage’s direct upload?
- PGError: ERROR: aggregates not allowed in WHERE clause on a AR query of an object and its has_many objects
- What is the difference between Gemfile and Gemfile.lock in Ruby on Rails
- Parametrized get request in Ruby?
- Rails best way to get previous and next active record object
- rails 3 has_many :through Form with checkboxes