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

Rails: wice_grid: filtering date without jQuery DatePicker

I am using wice_grid to create custom filters for my table. It can filter date by using jQuery DatePicker where 2 date sets are passed to the server. g.column :name => "Update_At", :attribute ...
0
votes
2answers
18 views

How to clean up this very simple Rails function?

Is there a way to pretty up this Rails code? def function if new_record? thing else thing + yet_another_thing end end I don't like the repetition of thing here, ...
0
votes
0answers
13 views

rails asset pipeline production precompile

I have a directory projName/vendor/assets/bootstrap/css/ I am in production mode. production.rb contains: config.assets.precompile << /(^[^_\/]|\/[^_])[^\/]*$/ when I run rake assets:precompile ...
0
votes
1answer
14 views

rake db:migrate alter table name

I wanted to change the name of a table I creted with rake db:migrate from financialss to financials. I created a file in my migrate directory called changeme.rb that looks like this. class ...
0
votes
1answer
8 views

How to add data-attribute to the form tag in simple_form?

I'm using garlic.js to validate my forms. Garlic.js recommends adding a data-attribute on the form tag. Here's what I need to generate: <form data-validate="parsley"> I'm having issues to ...
0
votes
0answers
10 views

Democratic queue in Sidekiq

Users can create a Project object that contain multiple tasks. When user tells the project to execute all those tasks are put on the default queue from Sidekiq. The problem is: if a user creates a ...
1
vote
2answers
19 views

How to delete cookie when window closed?

So, I have some current_user method, which takes ID from cookie's auth_token, and I want cookie be to deleted when window with site has been closed. cookies[:auth_token] = @user.auth_token What I ...
0
votes
0answers
5 views

Rails 4: Insert Attribute Into Params

In Rails 3, it was possible to insert an attribute into params like so: params[:post][:user_id] = current_user.id I'm attempting to do something similar in Rails 4, but having no luck: ...
0
votes
0answers
13 views

Need rails delayed_jobs to go in specific database

I'm planning to use delayed_job in a Rails application using the Mongoid backend. How do I arrange for delayed jobs to be created in a specific Mongo database (not the default)?
0
votes
0answers
16 views

activesupport-2.3.11 conflicts with activesupport (>= 3.0)

I am working on a Ruby on Rails project that a former programmer created. It is old code, using Ruby 1.8.7 and Rails 2.3.*. I am not going to upgrade versions because all I need to do is add a few ...
0
votes
1answer
22 views

Rails scope without using SQL

I'm trying to set up a scoped query where I can find customers that have paid (or partially paid) an invoice. However, the value I want to use in the scope isn't actually in the database, it's a ...
1
vote
0answers
20 views

Create nested attributes through JSON POST

I have two models which both "has_many" of each other through another table: class Deck < ActiveRecord::Base has_many :deck_arrangements has_many :slide_groups, :through => ...
-4
votes
0answers
24 views

is Ruby on Rails (ROR) good for developing E-Learning system?

I have provided general design for E-Learning system with following features : Virtual Classroom Categories, courses, and curriculum management Users management Assignment builders Process tracking ...
0
votes
1answer
28 views

Ruby ON rails- Webrick

I am getting the following error while giving the "rails s" command in my cmd. the error is given in the link. i am using mongodb as my database and not mysql.'pls suggest what to do ...
0
votes
1answer
14 views

Google maps for rails: How to normalize two address fields

I am using the google maps for rails gem - https://github.com/apneadiving/Google-Maps-for-Rails. According to there model customization guide here - ...

1 2 3 4 5 7662
15 30 50 per page