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

Have a rails form automatically include month, year and state

Does rails have a way to make form field include, all states, all months, and all years within 100 years. Currently I do stuff like this but doing this will get crazy when I get to states = ...
0
votes
0answers
9 views

Rails display two modals from same view

I have a Rails view with two icons. Each icon should open a different modal (using a partial). The issue is that both icons are opening the same modal (the first one). Here is the code to display ...
0
votes
1answer
7 views

Cucumber At Rails 3 in action book

I have got rails 3 in action book, in chapter two Feature: My Account In order to manage my account As a money minder I want to ensure my money doesn't get lost Scenario: Taking out money ...
0
votes
2answers
13 views

Routing for model that has an association from another module

I'm trying to figure out a problem I'm having with generating paths, and what I need to put in my routes file. At the moment I have the following: class Car has_many :doors, class_name: ...
1
vote
2answers
12 views

self vs non-self in instance method

Why the first code (with self) works but the second doesn't? category_uri is the attribute of model def set_uri self.category_uri = self.category_uri.join('-').downcase self.save! end Without ...
0
votes
0answers
7 views

Devise authentication with related field

I'm trying to use devise to setup an authentication process (Rails 4, Devise from github's master branch) that requires a username, a password and an organization name, Organization being a separate ...
0
votes
1answer
5 views

Rails gem : javan whenever failing

Trying to set up javan Whenever gem. Have the 0.8.4 version installed. schedule.rb looks like this : if Rails.env == 'production' set :output, "#{::Rails.root.to_s}/tmp/cron.log" every '*/1 * ...
0
votes
1answer
23 views

How to validate price in input?

I have an input (it's text input) where users can set up the price. The problem is, that users can sometimes set up the price like this: 9 9.99 9,99 $9.99 What's the best way to validate this ...
2
votes
3answers
17 views

Rails link_to: Do something after confirmation

I'm trying to execute a save action via AJAX using link_to: <%= link_to 'Save', image_path(image), method: :patch, data:{ confirm: 'Save image?', remote: true } );" %> I want the link to be ...
0
votes
0answers
8 views

Prevent input date changed by browser after submission (ransack query against created_at)

I have this ransack form with input box of created_at for user to search for entries created in certain date range: = search_form_for @q, url: entries_path do |f| = f.label :created_at_gt, 'Date ...
-3
votes
1answer
16 views

How to change the default routes in rails scaffolding?

When I create the Scaffold in rails, by default it assigns the routes. For Example: When I create a scaffold named Inquiries and I run the server, It first displays the list of Inquiries and with ...
-2
votes
0answers
16 views

Are there any projects in ASP.NET MVC4 similar to ActiveAdmin in Rails?

In Rails there is a gem called ActiveAdmin, which is a robust administration tool for a website. Are there any similar plugins/projects for ASP.NET MVC4 availale through NuGet, CodePlex, or GitHub?
0
votes
2answers
12 views

Why is this group clause not working

I have a Payment model with 5 rows. 4 of them with same user_id and one that is different. I try to group those results by user_id. It should return two results, however when trying this I always get ...
0
votes
0answers
8 views

Rails - Tracing user connection with devise

I need to trace the user's devise connection in a history table. Just a basic table with user_id, login_time, logout_time. Do you know any gem that to this work? (devise_traceable is realy close of ...
0
votes
0answers
3 views

rails_csi gem verses rails gem?

I've inherited a project that uses the rails_csi gem. I have been digging on the web and I have been unable to find a description of how the rails_csi gem differs from the rails gem. Does anybody ...

1 2 3 4 5 8505
15 30 50 per page