Ruby on Rails 3.0 is the latest major revision of Ruby on Rails, the open-source web development framework designed to make programmers happy and productive. Rails 3.0 brings a bunch of new features and improvements over older Rails versions, including: Brand new router with an emphasis on RESTful ...

learn more… | top users | synonyms (2)

0
votes
0answers
2 views

how to use self-joints in activeadmin?

I've the following Category model : class Category < ActiveRecord::Base belongs_to :parent, :class_name => "Category", :foreign_key => "parent_id" has_many :categories, :class_name => ...
0
votes
0answers
3 views

Rails 3: Two singular nested resources, one model

I'm working on my first bigger project in Rails. It will be a RESTful API. The situation I've stumbled upon can be described as the following: I have the models 'Person' and 'Application'. class ...
1
vote
0answers
7 views

RSpec undefined method `update_attributes' for nil:NilClass Error

I am trying to test my Rails app. Now I am testing my tiny controller but I have a problem. I use device to authentication. My controller which I test is like, class WidgetsController < ...
1
vote
0answers
16 views

SAAS Architecture with Rails

I'm planning the basic architecture for a new software that will need to be modular. I'm trying to define a multitenancy application to have a single instance running for all the users. What I need ...
0
votes
1answer
16 views

How to tell capybara-webkit to not ignore confirm boxes (or simply test their content)

So I have a scenario: Given I signed in to my business account And there is one customer named "Samantha Seeley" When I go to the customers management page Then "Delete" should show a confirmation ...
0
votes
1answer
20 views

Best way to use Twitter Bootstrap Icons as Links in Ruby on Rails 3?

What's the best way to use an icon provided by Twitter Bootstrap as a link in Rails 3? Currently, I am using it like the pasted snippet, but the icon doesn't display when I use my tablet to see the ...
1
vote
2answers
22 views

performing activerecord query on manualy created array of models

In Rails 3 I can perform query on associated models: EXAMPLE 1: model.associated_models.where(:attribute => 1) associated_models is an array of models. Is it possible to perform activerecord ...
0
votes
1answer
21 views

ActiveRecord, finding by date in a date criteria

I currently have a plain log with a matching value and a timestamp date. The matching value is not always present, so the second possible option is to match through the timestamp. ...
0
votes
2answers
21 views

Rails ActiveRecord Performance with many Selects and Inserts

I have a Rails 3.2 application that tracks mailings for subscription orders. The basic model structure is: Order has_many Subscriptions has_many SubscriptionMailings Each month a record for each ...
0
votes
3answers
48 views

Putting <div> inside <p> is adding an extra <p>

From http://webdesign.about.com/od/htmltags/p/aadivtag.htm "In HTML 4, the DIV element cannot be inside another block-level element, like a P element. However, in HTML5 the DIV element can be found ...
0
votes
0answers
18 views

Cannot start unicorn.

I'm trying to start my app with unicorn, but cannot start. I've got an argument error parse_rackup_file: rackup file (config.ru) not readable (ArgumentError) My environment is rbenv ruby1.9.3 and ...
0
votes
0answers
11 views

knockout-rails gem and using multiple models on a single view

I have a single view where I'm using rails fields_for on a nested form. I have setup my knockout-rails models that look like this Hud model class @Hud extends ko.Model @persistAt 'hud' Hud has ...
0
votes
0answers
27 views

uninitialized constant Delayed::Backend::ActiveRecord

I'm getting the following error when trying to rake rake db:migrate after upgrading from Rails 3.1.0 to Rails 3.2.3. uninitialized constant Delayed::Backend::ActiveRecord This is what I have in ...
0
votes
3answers
36 views

Strange rails error

Everything in my app was working fine, walked away for a few hours and came back to this... Psych::SyntaxError in Home#index Showing ...
0
votes
1answer
20 views

In Rails, Couldn't create database for {“adapter”=>“postgresql”,

I'm trying to run rake db:create or rake db:setup but I get the following error. It's strange because rake db:create it's working fine from others folders with other Rails projects. user:project ...

1 2 3 4 5 1770
15 30 50 per page