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

-1
votes
0answers
17 views

Database extern in ruby on rails

I want to know how I can generate a class from a database extern which is not in my rails Application. I want really your help. Thanks you
-2
votes
0answers
14 views

Class variable uninitialized error in ruby on rails

Here's the code: class MulticastController < ApplicationController @@groups=Array.new @@groups=[] @@group_name=Array.new @@group_name=[] def getResults @@groups ...
0
votes
0answers
8 views

JQuery Ajax, Rails

I have no idea how to get about this. Say I want to animate a comment that has just been posted, maybe making it fade in, how would I set an ID to it in Rails so that I could select it and animate it? ...
1
vote
1answer
6 views

Mass assignment error using acts_as_commentable_with_threading

I've been following this tutorial to implement threaded comments with the acts_as_commentable_with_threading gem. However, I seem to be running into a mass assignment error that seems to stem from the ...
0
votes
2answers
21 views

Sort ActiveRecord object using sort method in reverse order (DESC)

I have an array object @questions which is a collection of two Active record query results based on two conditions. @questions have a set of questions along with their attributes. I want to sort it in ...
0
votes
0answers
3 views

Generate reports from data stored in non rails mongodb

I have a system that have to generate reports from data stored in mongodb. The collections are likely very unstructured and containing some serialized data. What could be the approach to generate a ...
1
vote
2answers
18 views

ImageMagick Install Windows

I am trying to install ImageMagick on Windows. What I did is install Windows RailsInstaller created my version and now I need to use ImageMagick but for some reason it doesn't work. I took the binary ...
0
votes
0answers
7 views

Installing eventmachine on windows 8

I'm trying to install eventmachine so I can run this program https://github.com/alexagranov/earnings_date_finder to see what it does. I get this error: ...
0
votes
2answers
15 views

Can't find 'jquery-ui' Rails 3.2

I have been looking everywhere to figure out this problem. I already downgraded the jquery-rails gem to 2.3.0 in my gemfile. But when I include jquery-ui in application.js I still get the ...
0
votes
1answer
35 views

rails joins models confusion

Here is my three models/tables class Swimming::Classschedule < ActiveRecord::Base belongs_to :swimming_classtimes ,:class_name=>'Swimming::Classtime',:foreign_key => "classtime_id" ...
1
vote
0answers
16 views

Hybrid Model/Controller Validation?

I am looking to have a user enter in a URL to an image on a form. I already have this built. I would like for two different things to happen, but I was wondering if I could somehow combine them. When ...
0
votes
1answer
12 views

gem install rails doesn't work due to openssl/ETimedout in windows

Initially, I have ruby 1.9.3 version installed in my windows 7 and i have installed ruby 2.0.0p195 recently and have tested from command promot (ruby -v; ruby -e "puts 100"; irb )works pretty well. ...
0
votes
1answer
12 views

Rails how to save and set time zone then find the current date for each user?

In a Rails 4 app I want to use a function like this @bill.trading_date = 6.hours.ago.to_date to set the trading date for each user. Here are the steps I want to use. I want to collect and save ...
1
vote
0answers
14 views

singleton object to run query with in a Ruby module or class in a Rails app

I have several aggregation function that span multiple tables. Currently, I have them as class methods in one of the classes but would really like to put them in a central module or class since they ...
0
votes
0answers
13 views

Select Articles that aren't tagged with any tag in this array

This will be an easy one for any activerecord mavens - though I don't seem to be able to get a working query myself! I have Articles which have_many Tags through: a Taggings join table. class ...

1 2 3 4 5 7864
15 30 50 per page