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

current_path undefined method or variable capybara

It's my requests/profiles_pages_spec.rb: require 'spec_helper' describe "ProfilePages" do subject { page } describe "edit" do let(:user) { FactoryGirl.create(:user) } let(:profile) { ...
0
votes
1answer
13 views

Simple form: how to set values of a collection

I have the following code below: = simple_form_for :credits, url: "/accounts/#{@account.id}/topup" do |f| = f.input :amount, collection: [100,500,1000,5000,10000],as: :radio_buttons = f.button ...
0
votes
0answers
6 views

Rails/Spree -bash: spree: command not found

I have worked with rails before and i thought that i would try out spree to learn more about engines. Following the getting started tutorial on sprees documentation it seemed very strait forward. I ...
0
votes
1answer
17 views

Order alphabetically, but with one value at the top

This: - book.prices.order(:currency_code).each do |price| returns all a book's prices ordered alphabetically by currency code: AUD 19.99 GBP 9.99 NZD 26.00 USD 14.95 Now, how can I ...
0
votes
0answers
6 views

PostgreSQL Cookbook on OpsWorks

Is there a way to get PostgreSQL Cookbook to work with OpsWorks? I created a Rails Application layer on OpsWorks for my stack and added the custom Chef recipes postgresql::ruby and postgresql::server ...
0
votes
0answers
7 views

Calling data from nested resource to main resource in rails app

I have a blog app backed with Rails. I have Posts and Comments tables. Both are connected with has many - belongs to relationship, also resources are nested in config/routes.rb. In my posts#show, I'd ...
0
votes
0answers
9 views

MongoDB Bulk Insert Performance

I have the following code in my rails app. module UserItem class Rating include MongoMapper::Document key :user_id, Integer, :required => true key :item_id, Integer, :required => ...
0
votes
1answer
13 views

rails s error os x 10.8.4 rvm

I am just installing ruby / rails / gems ect. I installed rvm and I received many errors similar to this post, not sure if it is related. I believe I resolved the issues by installing ruby docs. ...
0
votes
1answer
18 views

using activerecord with nested databases

I am building a rails app to store many different, user-supplied database connections and execute arbitrary sql against each of them. I am representing each database connection string as an instance ...
0
votes
1answer
46 views

Value of datetime is always nil

I got this problem. When I used rails console and execute this command @partner = Partner.find(1). the field lastStatement is nil but when I query using psql lastStatement value is 2013-07-14 ...
0
votes
0answers
12 views

How to use transient attributes in Fabrication's count parameter?

I have this fabricator for a Rails model: Fabricator(:foo) do transient n_iterations: 5 bar(count: :n_iterations) { Fabricate(:bar) } end However, this doesn't work as hoped. I've tried count: ...
0
votes
1answer
24 views

mass-assign protected attributes in Rail 4

I got the error message WARNING: Can't mass-assign protected attributes for There is a method "Strong parameter can solve the problem" but failed I don't want to do attr_accessible :title, ...
0
votes
1answer
13 views

Ckeditor gem issue with production mode

I'm using the CKEditor gem. My config for application.js and routes.rb are like the followings: # application.js //= require ckeditor/init # routes.rb mount Ckeditor::Engine => '/ckeditor' The ...
0
votes
2answers
19 views

Can't start Rails Server on Ubuntu looking for Runtime even if its already installed

After several tries of fixing this matter(installed rubyracer, updated gems) and I still can't run the server. I'm on freshly installed ubuntu 12.04, using ruby 2.0.0-p247 and rails 4.0.0 ...
0
votes
2answers
45 views

Setting CSS classes with current_user

I'm having trouble arriving at an approach to this problem. tl;dr I want to be able to set the css class of an li to the name of the current_user that posted the chat. Then based on that class, I'll ...

1 2 3 4 5 8137
15 30 50 per page