Web apps on Rails. Simple, battle-tested conventions for building and testing MVC web applications. Works with any Rack-compatible server.
Questions tagged [actionpack]
74 questions
0
votes
0 answers
New clone of repo - actionpack is giving me argument errors from the gem file I don't understand
This is way over my head. Just cloned down a repo. Updated a few gems, all that seemed to go fine. But when I try to run rails s or rails c I get this…

Zachary Lehmann
- 15
- 1
- 5
0
votes
0 answers
Stack level too deep on upgrading rails 3.1.10 to 3.2.0
I am getting the following errors after upgrading my rails application from 3.1.10 to 3.2.0.
rails console is opening fine. And, I am able to execute code in console. However, When I run rails server and open page in browser. It fails and shows the…

Sarwan Kumar
- 1,283
- 9
- 24
0
votes
1 answer
setting the "view-name" of a controller
I would like to centralize similar actions of some controllers and wrote a controller from which the other controllers inherites. This works fine.
# calling Configurations#index will render configurations/index.html.erb
# while 'configurations'…

abstraktor
- 955
- 9
- 20
0
votes
0 answers
Resolving dependencies.. issue for actionpack
When i try bundle update command retrieve this error
Resolving dependencies....
Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
twitter-bootstrap-rails was resolved to 3.2.2, which depends on
less-rails (>=…

Joaquin Diaz
- 184
- 1
- 5
- 16
0
votes
1 answer
Rails log cookie information if ActionDispatch::Cookies::CookieOverflow error
I am raising a ActionDispatch::Cookies::CookieOverflow error.
In theory I know why this is happening, my session data is over 4k.
However I dont know what in my session would make it over 4k.
The stack trace of the error is as follows:
raise…

srm
- 655
- 1
- 8
- 21
0
votes
1 answer
Why is my Rails instance variable nil in my view?
I am stuck on someothing probably incredibly stupid, but I can't find my problem. I'm using Rails 3.0.3, and ruby 1.9.2 on a ubuntu machine.
I am trying to just set an instance variable in my controller, and use it to create a form on a new view…

noli
- 15,927
- 8
- 46
- 62
0
votes
1 answer
What is the difference between ActionPack and Rack? (Rails)
I'm trying to gain a deeper understanding of the Ruby on Rails framework and I've been doing a lot of googling about terms I've heard thrown around but never understood.
Two of these terms were "ActionPack" and "Rack"
According to the docs for each…

kingsfoil
- 3,795
- 7
- 32
- 56
0
votes
1 answer
Ruby - Unable to resolve dependencies with actionpack
I did a bundle install and bundle update and found that I keep getting the same error in the terminal:
Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
actionpack (~> 5.0.0)
rails (~> 5.0.0) was resolved to…

Junior
- 3
- 2
0
votes
1 answer
Bundler could not find compatible versions for gem "actionpack" - Rails
I am new with Ruby and Ruby on rails and i need to change some things on an existing rails project:
I have installed many required gems needed for the project, but when i execute: bundle install i have the next error:
I have been searching in…

viher
- 114
- 1
- 9
0
votes
2 answers
date_select tag when upgrading from 2.1.2 to 2.3.8
We are currently in the process of upgrading our rails version and I have come across some weird error in one of my date_select tags.
Here is the culprit:
<%= date_select :consultant_assignment, :start_date, :order => [:day, :month, :year],…

corroded
- 21,406
- 19
- 83
- 132
0
votes
1 answer
Capturing Rails 3 Multiselect Input Params
I have a multiselect form control (fig. 1). When I select more than 1 value, Firefox sends both values (fig. 2). But only the last value gets sent as a input value to my controller (fig. 3). How do I get all those values passed on to my controller?…

Nutritioustim
- 2,686
- 4
- 32
- 57
0
votes
1 answer
New ( clean ) Rails project crash ( Action pack error )
I have just created a rails project :
rails new project -d mysql
et modify the database.rb to match and when I try rails s -b 0.0.0.0 end access to local.dev:3000 ( vagrant machine ) I have an issue.
Started GET "/" for 192.168.56.1 at 2015-06-18…

Pierre Ftn
- 321
- 1
- 6
- 14
0
votes
1 answer
Where and based upon what template are rails route helpers defined?
Rails URL helper methods like user_path are defined dynamically, but where exactly?
To which module/class/classpath do they belong?

user569825
- 2,369
- 1
- 25
- 45
0
votes
1 answer
Setting of "respond_to" outside of action
I'd like to set "respond_to" part of action outside of action.
This is an example of how it should work:
def index
...
end
def show
...
end
response_for :index, :show do
format.html do
if empty_records?
redirect_to root_path
…

Sergei Struk
- 358
- 4
- 12
0
votes
1 answer
Rails SystemStackError (stack level too deep) in actionpack
today I got to an error with my Ruby on Rails API and I can't figure out what the problem is. Whenever I try to create a new Character in my Controller I always get an SystemStackError and I have no Idea why. I will post the relevant Files…

dhartwich
- 398
- 2
- 6
- 16