ruby-on-rails-3.1 Questions
30
Solved
Here is my actual error: No route matches [GET] "/members/sign_out"
Since most people will use "users" I thought it would be more helpful to have that in the title. At any rate, I am essential unab...
Mirilla asked 4/7, 2011 at 6:7
2
Solved
I tried to add a column to a table after a specific column in the table.
Here is what I did:
rails generate migration add_reaction_id_to_patient_allergies reaction_id: integer :after => 'patien...
Luke asked 18/3, 2013 at 16:19
23
Solved
I am working on a Ruby on Rails application and installed PostgreSQL using postgresql-9.1.2-1-osx.dmg. I installed the pg gem.
Then when I executed rake db:create, I got
the following error:
dlope...
Unesco asked 26/1, 2012 at 18:40
10
Solved
I stumbled to learn that my rails3.1 log file is super large, around 21mb.
Is this, in terms of size normal? What the log file would like in the production environment?
Besides, can I get rid of th...
Succession asked 16/10, 2011 at 11:51
19
Solved
I'm trying to use the Mongoid / Devise Rails 3.1 template (Mongoid and Devise), and I keep getting an error stating ExecJS cannot find a JavaScript runtime. Fair enough when I didn't have any insta...
Heiser asked 8/6, 2011 at 16:47
8
Solved
To find the incoming content type, docs say:
request.headers["Content-Type"] # => "text/plain"
But I found by trial-and-error, that doesn't work, but this does:
request.headers["CONTENT_TY...
Unattended asked 5/3, 2013 at 15:6
6
Solved
I am using devise for my users. I recently installed the rails Active Admin gem, everything is working beautifully.
However I can't figure out how to add a new admin users. I can see that active ...
Hereunto asked 28/9, 2011 at 22:54
9
Solved
I am running my development on Ubuntu 11.10, and RubyMine
Here is my development settings for the database.yml: which RubyMine created for me
development:
adapter: postgresql
encoding: unicode
...
Compliancy asked 3/4, 2012 at 4:35
3
Solved
How can I make a has_many through work with multiple database connections?
I have a database named "master" that holds the location information. That is updated from a separate application. Users...
Serbocroatian asked 28/11, 2011 at 21:20
3
Solved
I'm just starting with Devise and Rails3. I have the Authenetication down and working and understand the basics.
As of now in my Home Controller that represents my Home/Front Page i have two links...
Eldrida asked 11/3, 2013 at 20:55
3
Solved
I want to set a class attribute when my Rails app starts up. It requires inspecting some routes, so the routes need to be loaded before my custom code runs. I am having trouble finding a reliable p...
Klenk asked 3/1, 2012 at 3:7
9
Solved
I recently upgraded my application to rails 3.1 and generally everything seems to be working but one thing is driving me insane.
I have 2 main js files, we'll call them, application.js and main.j...
Kristoforo asked 1/10, 2011 at 4:52
13
Solved
I wanted to add confirmation message on link_to function with Ruby.
= link_to 'Reset message', :action=>'reset' ,:confirm=>'Are you sure?'
Any ideas why it's not working?
Maggio asked 21/5, 2013 at 11:31
5
So this is kind of baffling me as I can't quite figure out why it's happening. This only happens on my laptop (Ubuntu 11.04), and not elsewhere. I just seem to have something weird with the setup o...
Carrolcarroll asked 6/10, 2011 at 18:11
14
Solved
I created a new Rails project using rails 3.1.0.rc4 on my local machine but when I try to start the server I get:
Could not find a JavaScript runtime. See here for a list of available runtimes. (Ex...
Celeriac asked 17/8, 2011 at 11:30
2
Solved
I am using Sidekiq for some of my background processes.
Currently what I do is:
start bundle exec rails s on one terminal and then start bundle exec sidekiq on a different terminal so that the s...
Urgency asked 9/10, 2012 at 4:47
3
Solved
I have two controllers users & movies. All, I want to do, redirect from user#something to movie#something. is it possible??
Nymphalid asked 1/7, 2012 at 14:40
5
So in my application.html.erb I have my navigational structure that looks something like this:
<div id="navigation">
<ul class="pills">
<% if current_page?(:controller => 'welc...
Rhinoplasty asked 13/10, 2011 at 20:28
2
Solved
I am trying to reference an association extension but it errors with:
NameError (uninitialized constant User::ListerExtension):
app/models/user.rb:2:in `<class:User>'
Here is my implement...
Kostival asked 17/7, 2012 at 15:0
4
Solved
My output is like this -
ruby-1.9.2-p290 :011 > 2.32 * 3
=> 6.959999999999999
And I remember sometime back on another machine I had got it like.. 2.32 * 3 = 6
What is my mistake?
Thanks a...
Expropriate asked 20/10, 2011 at 20:53
6
Solved
I am using Rails v2.3
If I have a model:
class car < ActiveRecord::Base
validate :method_1, :method_2, :method_3
...
# custom validation methods
def method_1
...
end
def method_2
.....
Educate asked 16/1, 2012 at 14:54
12
I have a simple case, involving two model classes:
class Game < ActiveRecord::Base
has_many :snapshots
def initialize(params={})
# ...
end
end
class Snapshot < ActiveRecord::Base
belo...
Phillane asked 7/10, 2011 at 17:23
4
Solved
after updating to ruby 3.1.2 and Rails 7.0.2.3
getting following error while starting rails application:
`require': cannot load such file -- matrix (LoadError)
what could be the possible solution,...
Scifi asked 24/4, 2022 at 19:5
20
I'm getting this error:
rake aborted!
Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs,
I have already spent more hours searching google then I am willing to a...
Selfpollination asked 8/2, 2012 at 22:13
6
Solved
I'm getting that error on my production server, and can't figure out why. It happens when running this command:
bundle exec rake assets:precompile RAILS_ENV=production
I'm using Rails 3.1.0.rc6
...
Conation asked 26/8, 2011 at 14:12
1 Next >
© 2022 - 2024 — McMap. All rights reserved.