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
6 views

Nested file upload problems with showing the url for the file in Amazon-s3

I have a an activeadmin+carrierwave app. I am trying to nest a file upload model called artwork into the order form. The form is creating fine but the show page is not showing the file link nor is it ...
0
votes
0answers
4 views

How can a gem be shown in “bundle show” but not be in the Gemfile?

Running bundle show Lists rake (10.0.4) and i18n (0.6.1) amongst other gems, however they are not listed in the Gemfile. Why / how are [gems which aren't in the Gemfile] listed? The problem I'm ...
1
vote
0answers
14 views

Run command on Rails Console startup

Is there a way to run a specific command when the rails console starts? I'd like it to print out whether or not I'm connected to the remote or local database in BIG LETTERS! I don't mind writing a ...
0
votes
0answers
6 views

Heroku + Rails 3.2 + PostgreSQL = NoMethodError: undefined method `result' for #<NoMethodError:..>

NoMethodError: undefined method `result' for #< NoMethodError: ...> Stack trace refers to this place: def current_income return @current_income if defined? @current_income if ...
0
votes
2answers
11 views

Iterate through records in view and create text_fields

I have a table: family_children (the model is family_child) where family has many children. I get the children like this: @family_children = @family.children where .children is an association to ...
0
votes
0answers
7 views

The best way to store sortable list in PostreSQL and Rails

I have a model A which has many B. So a.bs is a list of B. I want this list to be ordered by user. The common way is special order field in the database and then :order_by => order_field for B. But ...
0
votes
0answers
3 views

rake db:setup not work with Postgres and Postgis ERROR: could not access file “$libdir/postgis-1.5”: No such file

In Ubuntu, i try to run rake db:setup to install a Rails application, but i have several times this message ERROR: could not access file “$libdir/postgis-1.5”: No such file Finding in the files, i ...
0
votes
0answers
9 views

Devise - remove need for encrypted password for twitter logins

I’d like to know how I can create a new user using a twitter account with devise and not require an “Encrypted password”? I was able to remove having to provide a password by adding (to my user ...
0
votes
0answers
4 views

Google freebusy api call in rails will not recognizing parameters

I am trying to find all the freebusy times from my primary calendar, but I cannot get the query to recognize my parameters. In my controller I have: @freetimes = client.execute( :api_method ...
0
votes
0answers
20 views

Rails 2.3.5 & ruby 1.8.7 issue while creating new application

I am using rails 2.3.5 & ruby 1.8.7. i am getting this error while creating the new application. ...
0
votes
0answers
6 views

CSV file upload cancel Ruby on Rails

Im wondering whats the best way to handle this. I have a form_for with a couple of text_fields to fill and with a form.file_field(:file) , so a user can upload a csv file into the database. There is ...
0
votes
0answers
7 views

Capybara form with multiple: true getting sent the wrong value

I'm using capybara 2.1.0 and have a form with multiple: true (allowing me to upload multiple files). The site works fine in browsers, but capybara has a problem in that the field is being submitted ...
0
votes
1answer
16 views

Client side MVC instead of server side MVC

Instead of using server side MVC like Ruby, Python, PHP to build very complex web app, why should not we split our web app into multiple modules, and build each with client side MVC like backboneJS, ...
0
votes
0answers
7 views

Ember-rails project as a mountable engine?

Ember & Rails newb here with a serious question about both. I'm building a project that leverages the ember-rails setup as exemplified here: https://github.com/dgeb/ember_data_example However, ...
0
votes
1answer
20 views

Rails undefined method `image' for error

I wanted to add to my rails app a new model: rails g model Painting patient:references treatment:references image:string I run migration, and then added some lines to the other controllers In the ...

1 2 3 4 5 7939
15 30 50 per page