Top "Actioncontroller" questions

ActionController is the main controller class in Ruby on Rails.

Getting Action controller unknown format error- for rails 4 + unobtrusive javascript and AJAX call

Ive got the following setup: uploads_controller.rb: class UploadsController < ApplicationController before_action :set_upload, only: [:show, :edit, :update, :…

javascript ruby-on-rails ajax unobtrusive-javascript actioncontroller
Routing Error No route matches {:action=>"show"

I only have 2 weeks learning ruby on rails, in my app the users can register their cars, from their profile (…

ruby-on-rails routing routes actioncontroller
Rails ActionController unknown format

I am trying to render a xlsx file. But I keep getting a 406/UnknowFormat. I have done the right setup, …

ruby-on-rails ruby actioncontroller axlsx
Rails 4 has_one association form not building

I need some pointers on how Rails 4 works with has_one and belongs_to association. My form doesn't save the …

ruby-on-rails ruby-on-rails-4 form-for actioncontroller strong-parameters
skip_before_action and Rails 5

I just upgraded to Rails 5 and everything went pretty smoothy but for no apparent reason a method that is called …

ruby-on-rails ruby rspec ruby-on-rails-5 actioncontroller
How to access a Rails controller view context from outside of a controller?

I am working on cleaning up some code that relies on some custom controller helper methods, by creating a "plain …

ruby-on-rails actionview actioncontroller actionviewhelper
set default_url_options on initialize

I need to force the host in one of the environments in my rails app. I've can get the override …

ruby-on-rails initialization boot actioncontroller
Set a before action to all member routes?

Playing around with Rails 4, I noticed that it defines a before_action filter set_[model], that is called for the …

ruby-on-rails actioncontroller
Ruby on Rails 301 redirection

I added slugs to some of the models, but because of SEO I need to do 301 redirection from old links: …

ruby-on-rails redirect seo actioncontroller
Running threads inside my rails controller method

I've got a set of data that I'd like to do some calculations on inside my rails application, each calculation …

ruby-on-rails ruby multithreading actioncontroller