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

How should i use IF statement in Ruby on Rails

I've two tables Persons and Statuses, I've also made two classes Person and Status, I am using following code to show the error message "Only one status is allowed", but this code is not working, I ...
0
votes
0answers
5 views

rails routing: using bound parameter as action name

I got a bunch of .html files from a designer. I just want to use them directly, but they have non-resourceful links. I realized that if I map .html routes to home# actions, I can start working with ...
0
votes
0answers
7 views

Email validation failed when using omniauth+twitter+devise

I'm using the code from http://railscasts.com/episodes/235-devise-and-omniauth-revised, the code is in https://github.com/railscasts/235-devise-and-omniauth-revised/tree/master/blog-after and I get ...
0
votes
1answer
7 views

In Rails, How to construct a multiple input field form for same database field

I've just started Rails and I'm working on a simple logging app where I have a database (Mongodb) and Rails 3.x.x The user is going to input, via text_area, 3 short text (:what) that will be stored ...
1
vote
0answers
7 views

using a lambda or proc and rails-money

I want to be able to set the currency on the model dynamically using the currency as set by the model's parent. Like so: class Event < ActiveRecord::Base belongs_to :edition monetize ...
0
votes
1answer
13 views

How does Rails calculate the response code for actions

How does Rails calculates the response codes for controller actions? Given the following controller action: def update respond_to do |format| if @user.update(user_params) format.html { ...
-3
votes
0answers
16 views

Ruby Script not showing output in command prompt on windows XP

I have installed ruby in my windows XP system. After that in command prompt when I am trying to check installation by using ruby -v its not outputting any version information and similarly when i am ...
0
votes
0answers
5 views

Don't Eager Load For Cache Digest Keys

Is it possible to skip any eager loading calls when using the cache digests in Rails 4.0.0? My controller: def index @posts = Post.includes(:comments, :author, :related, :tags) ...
0
votes
2answers
15 views

Ruby on Rails: Converting audio in background and uploading using paperclip?

I have two attachments in my model, original & modified. My application allows a user to upload an audio file and the backend should convert it to a modified format. The original file is ...
0
votes
1answer
13 views

rails polymorphic many-to-many association

I have these models: class Company < ActiveRecord::Base has_many :categorizings, as: :categorizable has_many :categories, :through => :categorizings class Categorizing < ...
0
votes
1answer
9 views

Rails: Capybara doesn't find a div element

I'm using Capybara with RSpec to check my Rails project. I'm testing errors when form fields are not correctly filled. Here is the form (using haml): = form_tag '/objects', :class => ...
0
votes
0answers
12 views

Trouble with routes

I'm having a little 'best practice' trouble with routing and devise. Here is my routes file. I realize it is becoming extremely !DRY, but this routing makes sense. My question is instead of what I ...
0
votes
0answers
9 views

Rails JSON caching

What can I wrap my jbuilder view in to get it to cache similarly to html page cache? json.extract! @post, :id I'm hoping to find a way to cache this on a CDN, and be able to force updates Russian ...
0
votes
1answer
9 views

Ruby on rails application in Windows Azure Virtual Machine

Hi i have created a ubuntu virtual machine in windows azure for deploying my rails application.. I have connected to my virtual machine through ssh and followed this procedure for deployment ...
0
votes
1answer
9 views

Why can't my controller's spec file find a post method?

In /spec/controllers/postbacks_controller_spec.rb, I have: require 'spec_helper' describe PostbacksController, :type => :controller do include RSpec::Rails::ControllerExampleGroup describe ...

1 2 3 4 5 8136
15 30 50 per page