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

Form params not available in controller

I have a form like this: <%= form_tag :action => 'notify_user', :id => @user.id do %> <%= check_box_tag :email %> <%= submit_tag %> <% end %> form[:email] is ...
0
votes
2answers
10 views

Iterating through a has_many through relationship

In my app I have a Document which has_many Companies through Companydocs. And vice versa, there is a Company which has_many Documents through Companydocs. This all works fine. Now I have a documents ...
0
votes
2answers
13 views

Ruby on Rail - Partial with local in mail

I'm trying so send an email like this mail(:to => @user.email, :from => from_email, :subject => t('orders.invoice.email_subject'), :content_type => "text/html") do |format| ...
0
votes
0answers
9 views

Disable cache digest in rails4

Im upgrading from rails 3.2.13 to rails 4.0.1. I'm facing problem with caching which giving me undefined method 'expired_fragment'. Is there a way to disable cache digest? I added these gems as ...
0
votes
2answers
13 views

ruby on rails - Search form with select_tag

I have 2 models, Post and Location, where location has_many posts and post belongs_to location. I want to make a search function with 3 conditions. With the following code it did not return any thing ...
0
votes
3answers
27 views

Rendering a partial inside a block

I'm new to rails. I have this block in my view afrikaans.html.erb <% @afrikaans.each do |course| %> <div class="course"> <h3 class="course-name"><%= link_to course.name, ...
0
votes
3answers
14 views

Ruby on rails: dynamic code not working into erb

Here is my code Here i want to include youtube video id dynamically. Its not taken here Kindly give me a solution <%= link_to image_tag("http://img.youtube.com/vi/<%= video.provider_uid ...
0
votes
1answer
27 views

Rails form in one line with css

I am trying to create a rails form but I would like all of its input fields to appear in one line. I have no experience with css and I am relatively new to rails. My form is the following: <%= ...
0
votes
1answer
20 views

why is my rails version dependent on what directory I'm on

I'm trying to figure what version of rails I got installed.. If I run on it on my home directory: cd ~ rails -v I get Rails 3.2.13 However if I run it on the home directory of a ruby on rails ...
0
votes
1answer
12 views

Gem can be required in IRB but not by Rails

When I add require 'soundcloud' in Rails and start the server using rails server I get ...rb:9:in `require': cannot load such file -- soundcloud (LoadError) the same yields => true in ...
0
votes
1answer
4 views

bootstrap-timepicker-rails doesn't work in my Rails4

I'm new to Rails. I've been tring bootstrap-timepicker-rails gem in my Rails4 application but it's doesn't work. https://github.com/tispratik/bootstrap-timepicker-rails Gemfile source ...
0
votes
1answer
22 views

Which process will be killed by kernel in case of memory over use? child or parent?

let me cover a small background here: i am launching one ruby script (script_launcher.rb) through PHP using shell_exec function and in that ruby script i am doing this: spawned_process_id = ...
-3
votes
0answers
40 views

Which language to learn to build web app containing data entry, graphs and ability to use other compiled program [on hold]

I am new in this field and I have some c++ codes which are useful as they create graph of mathematical function provided by the user, but because it is in c++ I want to know a way to have a web ...
0
votes
1answer
11 views

Too many database connections created in rails 2.3.18 application

We have many models like the below one. class User < ActiveRecord::Base create_connection def create_connection # we have used this ...
0
votes
1answer
12 views

Ruby on Rails: How to get nested_form_for new child ID

I have QuestionSet, Question, and Choice tables class QuestionSet < ActiveRecord::Base attr_accessible :name has_many :questions end class Question < ActiveRecord::Base ...

15 30 50 per page