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

Rails + ActiveRecord - how to fetch word where column is not true?

I am running this application on Heroku, where is used PostgreSQL and I am trying something like this: Model.where('column.something = ? AND listings.status IS NOT ?', 'something', true) or ...
0
votes
0answers
9 views

is it possible to read validation rules when building form in rails?

i mean in rails, can i build form by reading validation rules. my user model: class User < ActiveRecord::Base validates :name, :email, :sex, ...
0
votes
1answer
10 views

undefined method `title' for nil:NilClass guides.rubyonrails.org/getting_started.html

I'm new to Rails and am working through the Ruby on Rails getting started tutorial. I'm getting an error on 5.7 Showing Posts that says 'undefined method title' for nil:NilClass'. Any assistance you ...
0
votes
0answers
21 views

Rails extremely slow on simple static render

I'm relatively new to Rails, but decided to develop my new project on this platform. I'm using new Rails 4 framework based on Ruby 2.0 and Unicorn as application server served through Nginx. After ...
0
votes
1answer
15 views

Is it possible to copy only not protected attributes from one model to another in ROR3?

I need to copy attributes from one model to another. So I'm explicitly setting them like this: user = current_user.attributes.slice("id", "name", "surname") user["user_id"] = user.delete("id") ...
0
votes
1answer
14 views

How would you use a regular expression in an activerecord scope

I hoping to use a regular expression in a scope. scope :smith, where(:full_name => /(smith)/) #names that include the word smith Is this possible I've been trying different approaches to ...
0
votes
0answers
7 views

Call child models from parent model using rails admin gem

I have one parent model and two child models. I am using rails admin gem in my rails app. I want to show that if user click on any specific member from parent model so gets the related both child ...
0
votes
0answers
8 views

setting ssh connection to match with gitlab

I am running GitLab on my local OSX, on localhost:3000. I have this configuration in /home/myhome for my ssh connection. Host mylocalhost Hostname localhost PORT 3000 User git IdentityFile ...
3
votes
1answer
18 views

RSpec2 error codes testing

I have an issue with testing error codes. If a record is not found, it raises exception ActiveRecord::RecordNotFound. The thing is, I wanna check if 404 is returned. If I go ahead and just check : ...
0
votes
1answer
9 views

uninitialized constant SampleController::Delayed while executing delayed_job worker method

I am getting the following error while executing SampleController. uninitialized constant IdeasController::Delayed I have already started the delayed_job by using rake jobs:work. I have the ...
0
votes
0answers
11 views

How to use Community Engine as a base application?

Hi I'm a new rails developer, I would like to use the community engine http://www.communityengine.org/ as the base application, but I'm only able to add it as a gem in an existing rails application. ...
0
votes
1answer
16 views

Order activities by child attribute, polymorphic association in Rails

I have a polymorphic association for an activity feed. When a new 'article' or 'tweet' are created, this also creates the activity. I want to sort the activities by 'published_at' date, which both ...
0
votes
1answer
22 views

Trying to connect Google, but sometimes “Connection failed”

When I try to fetch contacts from Google, but sometimes when I click on the link to connect with Google API, I get an error page, where is written that Connection Failed or an Timeout Issue. When I ...
0
votes
1answer
15 views

Filtering an ActsAsTaggableOn belongs_to association

Using ActsAsTaggableOn I'd like to create a collection of TimeFrames that belong to an event that has been tagged with 'fun' However, I'm getting this error "SQLite3::SQLException: no such column: ...
-1
votes
0answers
15 views

Fog gem to acces amazon s3

Overflowers! Im following along with Ryan Bates rails cast on uploading images to Amazon S3 using carrierwave and fog (pro episode: http://railscasts.com/episodes/383-uploading-to-amazon-s3) upon ...

1 2 3 4 5 8192
15 30 50 per page