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

How to access HTML5 localstorage in Rails View Contoller

i have saved some keys in html5 localstorage using JavaScript running on my Views.. <script> function setKeys() { localstorage.setItem("key","some_value") } </script> Now i want to ...
0
votes
0answers
10 views

Overriding method of module of gem

I need to override method "email_to_name" of gem "omnicontacts" as it doesn't work with ruby 1.8.7. I have error for named regex in this method lib/omnicontacts/parse_utils.rb:32: undefined (?...) ...
0
votes
0answers
8 views

Viewing instance fields in RubyMine

I'm new to Ruby and I come from a C# background so apologies if this is very basic. I'm navigating around a large Rails project and looking at the model (ActiveRecord) classes. I want to be able to ...
0
votes
0answers
12 views

Gem depends conflict

How to resolve this conflict? I tried to delete my Gemfile.lock. And tried bundle install again. And received the output: Bundler could not find compatible versions for gem "oj": In Gemfile: ...
0
votes
0answers
7 views

Migrate Rails 3 app from Heroku to Bluehost(my own domain)

I am currently running a RoR app on Heroku which I need migrated to bluehost.com(my own domain) Current Stack (core): Ruby 1.9.3 Rails 3.2 Postgresql (All data has to be migrated) I am using some ...
0
votes
0answers
22 views

Rails: How to select a limited amount of rows for each foreign key?

Here's how it's done using pure SQL but is it possible to do this in Rails w/ Postgres? How to select a limited amount of rows for each foreign key?
-1
votes
0answers
7 views

how to deploy rails app directly from the local machine to AWS (app not placed in github)

As title, or how to deploy directly from the local machine to AWS , by AWS elastic beanstalk or capistrano, Thank you!
0
votes
3answers
21 views

Limit resource routes in rails

I have below routes resources :analytics do collection do get 'group_image' get 'group_tag' get 'group_location' get 'group_time' end end But it also creates default routes, which I don't ...
0
votes
1answer
19 views

No route to host - connect(2) (Errno::EHOSTUNREACH)

Where can i find configuration to the SMTP server? **************/usr/lib/ruby/1.8/net/smtp.rb:551:in `initialize': No route to host - connect(2) (Errno::EHOSTUNREACH)  from ...
0
votes
0answers
19 views

Change default sort order in ActiveAdmin scope

For most models, the default sort order (id desc) is fine. But for a couple of scopes on one of my models, it would make more sent to reverse the order, or order by the updated_at field. I seem ...
0
votes
0answers
9 views

Carrierwave/RMagick NoMethodError after upgrade to ruby 2.0

I upgraded my app from ruby 1.9.3 to ruby 2.0, keeping most of my gems without upgrade. Everything worked fine, but when I tried to upload an image, I got this error: NoMethodError - undefined method ...
1
vote
2answers
22 views

Method to return multiple bits of text Rails

I am currrently in the process of writing a new rails application and have a div near the top of my page called background that contains an image, a Title and some sub title text. At the moment I ...
0
votes
1answer
18 views

Ruby on Rails Integration test update action not found

I have very simple data in a database: grades:   id: 1, name: g1 classes:   id: 1, grade_id: 1, name: c1, description: "class 1" I have the following test case: use access ...
0
votes
0answers
28 views

reload! my views in rails app?

I'm using rails 2.3.18, and ruby 1.8.7. In console, reload! only reloads the models. I'm trying to check if a partial is rendered correctly with ActionController::Base.helpers.render in rails ...
0
votes
0answers
15 views

Rails 3 Jquery and Paperclip for restful form

I am using jquery-fileupload-rails gem. So far, I am able to work with it properly, but when a user is trying to update any attachment, the already uploaded attachment is not shown up. Here is my ...

1 2 3 4 5 8129
15 30 50 per page