Ruby on Rails is an open source full-stack web application framework written in Ruby. It follows the popular MVC framework model and is known for its "convention over configuration" approach to application development.

learn more… | top users | synonyms (2) | ruby on rails jobs

0
votes
0answers
12 views

How to add a new column correctly within a rails application without relying on migrations?

Lets say user Bob wants to keep track of his meals calories every day, which are currently breakfast, lunch, dinner, and a snack. So I make a table within rails containing four columns (breakfast, ...
0
votes
0answers
3 views

How to enable Cross Origin Resource Sharing in Rails application?

I have developed a Rails Application which servers as a back-end for mobile devices.Now i am trying to access my Rails Resource through Web Application.I tried creating an sample web application ,but ...
0
votes
0answers
7 views

ROR Heroku push error Bundler could not find compatible versions for gem “hashie”:

Getting this error while pushing code on heroku. IS there anyone who can solve my problem. Resolving dependencies... ..Bundler could not find compatible versions for gem "hashie": In ...
0
votes
1answer
8 views

Twitter Bootstrap modals: inputs are invisible

What's wrong with this code? No inputs show up, but the buttons in the modal footer do. Any idea what's going on here? <div class="modal" style="display: none;" id="customArticleModal"> ...
0
votes
1answer
6 views

Rails App not Precompiling for Heroku Push

I am new to both Ruby and Ruby on Rails. To begin familiarizing myself with the framework, I am going through One Month Rails. Unfortunately, I have hit a snag. Up until last night, I was able to push ...
0
votes
0answers
6 views

Run a command in the context of a different app

I have two rails apps on the same server, let's call them A and B. I am trying to have app A restart app B via app B's own capistrano task. Unfortunately, even after cd-ing to app B's directory, it ...
0
votes
2answers
9 views

Process return of select from database in erb view in ruby on rails

I'm trying to process a array/list that came from the database. Here's how I do it: @amenities = AmenitiesAndFeatures.select("name").where(is_amenities: true).order("name ASC") div ...
0
votes
2answers
20 views

Ruby Regex for 1 or two Digit Match with Elsif

I'm trying to use the following regexp in ruby <% elsif entry.name=~(/^[0-9][0-9]/) %> to check the entry.name string for a 1 or more digit number. I can't seem to get the syntax right. For ...
0
votes
0answers
9 views

Updated Push certificate and Apple Push Notification doesn't work

An iPhone app that used to work in development and production had its Push certificate expire. I created a new certificate and have not been able to get Push Notifications working again in ...
1
vote
2answers
16 views

Is it possible to exclude unsigned-in user if URL contains particular parameter when using Devise?

There's URL like this example.com/users/1376 Anyone can see this page even if the user is not signed-in. There's also URL like this example.com/users/1376?mode=1 Only signed-in user can see ...
0
votes
0answers
9 views

Rails Server not loading + can't install gems due LoadError (possibly corrupted $PATH)?

I suspect in the process of trying to fix my problems with brew and install postgresql, I had corrupted my $PATH, and as a result, are not able to start rails server on my rails app. I get the ...
0
votes
0answers
6 views

Postgresql prepared statement in Rails : PG::Error: ERROR: bind message supplies 1 parameters, but prepared statement “a4” requires 0

I have introduced a new field to a model file in my 4.0.0 Ruby on Rails application and added a validation to make sure it is unique using the following line: validates_uniqueness_of :source_id ...
0
votes
0answers
11 views

Not sending recovery password in ruby on rails

I'm doing a rails application and I'm trying to send an email to the user for recovering their password. I'm using the "devise" library and I cant understand why my application is not sending the ...
0
votes
1answer
10 views

Backbone Drop Event Listener Amongst Two Views

My app has a dashboard with two panels. Each panel is a different Backbone View that renders out a template within the respective panel. The Views are instantiated by a Backbone Router. I need to ...
0
votes
0answers
13 views

iPhone to Rails - ERROR Errno::ECONNRESET: Connection reset by peer

I have an iPhone app that talks to a Rails website and I've recently started getting the following error after an HTTP GET to the rails website from the iPhone: Completed 200 OK in 46ms (Views: ...

1 2 3 4 5 8365
15 30 50 per page