ruby-on-rails-3 Questions

3

I am using omniauth-facebook gem in my rails application to allow user to sign_in/sign_up via facebook. Its working well. But my problem is when I click on cancel button I am getting following erro...
Jordonjorey asked 18/5, 2012 at 6:17

4

Solved

I was trying to follow: Rails: submit (via AJAX) when drop-down option clicked However none of these options appear to work (onsubmit, submit) This is what I currently have that is refreshing the...
Bound asked 18/11, 2011 at 4:55

5

I am working with ActiveAdmin and need to make customizations to some views and have come across a couple of scenarios I feel I am doing wrong. I am adding an additional table to a show view (comm...
Stonechat asked 22/7, 2012 at 6:9

4

I've been round and round here with trying to get the assets to pre-compile on my production server (straightforward ubuntu install with ruby 1.9.2 and Rails 3.1.1, and tried 3.1.2RC with the new s...

14

Solved

I am struggling to push my code to Heroku. And after searching on Google and Stack Overflow questions, I have not been able to find the solution. Here is What I get when I try "git push heroku mast...
Mantilla asked 1/1, 2011 at 13:24

4

Solved

I'm currently writing a mailer in RoR 3.2 that would send out mails that should be localized based on a users' language. I managed to render the correct localized views but I'm having some difficul...
Labaw asked 19/6, 2012 at 9:9

5

I am new in Ruby on Rails and i am using Ruby version 2.1.0 and Rails 4.0.2 My Query is:- I want to call Model in initializers. my Model file is setting.rb and Model name Setting. its location i...
Ricarda asked 27/3, 2014 at 6:38

2

Solved

I am using Ruby on Rails 3 and I would like to disable and toogle the CSS class of a form.submit when the form is AJAX submitted and until the AJAX HTTP request is completed (I am using the default...
Phaeton asked 5/3, 2012 at 17:13

2

I am using ruby 3.1.3, rails 7.0.5 and activeadmin 3.0. I just followed the installation instructions from the activeadmin website, but I got the following error: ActionView::Template::Error (Ransa...
Vise asked 16/7, 2023 at 17:47

7

Solved

I have the following code in a Rails controller: flash.now[:notice] = 'Successfully checked in' redirect_to check_in_path Then in the /check_in view: <p id="notice"><%= notice %>&lt...

5

Solved

I installed rvm with rails, from the official website of RVM, I specified the command suggested by the tutorial. When the installation my system has rails 4.0.0, rvm 01/23/12, ruby 2.0.0, bundler g...
Homovec asked 25/10, 2013 at 17:25

6

Solved

how can i detect browser type and its version in Rails. I want to put check on the version of specific browser and if its not required browser version than ask user to upgrade it.. i use below spec...
Mitzimitzie asked 26/4, 2011 at 8:37

6

Solved

The problem I have a Ruby on Rails model with a Date attribute. In the form for this model, I am using a single text field with a JQuery datepicker to represent this attribute (not a drop down fo...
Uella asked 20/3, 2013 at 18:25

3

Solved

I try to work with a webhook to get a JSON, I read that I should install ngrok because webhooks do not work locally, so I installed ngrok, and tried to follow this small tuto : https://medium.com...
Happy asked 19/12, 2019 at 15:15

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...

5

Apparently there is no assert_false in Test::Unit. How would you add it by extending assertions and adding the file config/initializers/assertions_helper.rb? Is this the best way to do it? I don'...
Bartizan asked 24/11, 2011 at 17:33

10

Solved

I'm following Michael Hartl's Rails Tutorial, and for some reason the following code: <%= link_to 'delete', user, :method => :delete, :confirm => "You sure?", :title => "Delete #{user...
Holcomb asked 19/9, 2011 at 2:25

6

Solved

we've just upgraded to Rails 3.2.5 from Rails 3.0.7 and using the assets-pipeline compilation on the fly for the staging server, but some times we face this exception ! Showing /var/rails/appname/...

4

I have a simple link_to_function in my view template <%= link_to_function "add new category", "$('#category_name').focus()" %> and I want to test this with capybara using request specs. Ba...
Stormie asked 29/10, 2011 at 17:34

5

Solved

In my Rails project I have different types of users one of which has the user_status :admin, which has full rights to edit content unlike the rest of the users. For obvious reasons I want to add ad...
Cryptomeria asked 9/3, 2015 at 10:58

4

Solved

I see in the Active Record docs, you can query for a date using a greater than / less than comparison. However, what if you want to select where date = Date.today or must I query where date is grea...
Tattoo asked 18/1, 2013 at 17:18

12

Solved

I'm trying to install Rails 3 on a brand new MacBook Pro running OS X 10.6.3, Ruby 1.8.7, and Rails 2.3.5 and I'm wondering if I've hosed myself. So far, I've run these commands: $ gem update --sy...
Virago asked 23/5, 2010 at 23:13

6

Solved

As the question states, why is it considered best practice to store telephone numbers as strings rather than integers in the telephone_number column? Not sure I understand the rationale for this. ...

7

Solved

I'm working on an application that needs to use session id information. My session is stored in cookies. The problem I have is that my session is not immediately available to the controller when a ...

3

Solved

I am using rails 3 and postrges. I would like order by a specific priority. Something like: Assignment.order(priority: ['best', 'good', 'bad']) and this will return all activerecords first wit...
Caraway asked 12/5, 2014 at 23:35

© 2022 - 2025 — McMap. All rights reserved.