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

Access github API with rails oauth plugin

I'm implementing an application that is supposed to be able to talk to different APIs on behalf of its users. Amongst others, this includes github. I'm using the oauth-plugin ...
0
votes
1answer
35 views

Run Javascript only on one page

First my javascript: $(document).on("ready page:change", function() { my_paginate(); } function mypaginate(){ if ($('body.searches').length) { if ($('.pagination').length) { .... ...
1
vote
0answers
9 views

Rails scope select where all values are in a list

I've got a rails scope that looks something like this: default_scope joins(:groups).where("groups.name in ('GROUP1','GROUP2')") Which filters my model objects where they aren't in GROUP1 or GROUP2, ...
0
votes
1answer
9 views

What is the best way to test Action mailer without worrying about the enviroment-rails 3

i need to test the action mailer in my ruby on rails project which is already live.i don't want to go in the mess of creating a new mail server like zimbra on localhost or mess with the configurations ...
0
votes
0answers
3 views

simple_form month translation

I am dealing with a Rails 4 application using simple_form. I want to display the app in spanish so I did I18n.locale = :es. Then I created the labels for simple_form in simple_form.es.yml and ...
0
votes
0answers
20 views

How to return id in JSON (Rails)

I'm learning Ruby on Rails. My http://localhost:3000/locations.json returns the following: [{ "name":"ABC", "address":"xyz", "latitude":12.3, "longitude":14.5, ...
0
votes
0answers
5 views

SQLException: near “references”: syntax error: ALTER TABLE “questions” ADD “video” references

I tried "AddvideoToQuestions video: references" A question has_many videos. A video belongs_to a question. Tried to rake db:migrate, and got the following error. WHATSUP? I'm finally deep diving ...
0
votes
2answers
27 views

Rails 4 Relation#all depracation

In my app I created a recent posts feature. @recentposts = Post.all(:order => 'created_at DESC', :limit => 5) This variable makes some trouble. When I run tests I have the following error: ...
0
votes
1answer
12 views

How to handle gemset

I am new to Rails. Each time I open a new terminal in Linux, it tells some gem is missing. But I have installed the gem in the same folder already in different terminal. So could anyone please advise ...
0
votes
0answers
3 views

How to resolve “could not find compatible versions for gem ”rake“ , when using dm-pg-types and (sass-rails, coffee-rails) gems together”

I started migrating my Sinatra app to Rails app and in process of changing the GEM file of a new Rails installation. I am using dm-pg-types and seems like it requires older version of rails , which ...
0
votes
0answers
27 views

Display content first when the user clicks on text

I made an little sketch where you can see how my view looks actually and how i want it to be: How you hopefully can recognize i want, that when the user clicks on one chapter, its subchapters are ...
0
votes
0answers
14 views

Rails getting private method “user_params” through different controllers

at first im learning rails at the moment, and this site alrdy helped alot, but now i have some kind of problem, i dont know how to fix. I have a User registration. Now i thought i could make some ...
0
votes
2answers
16 views

PG::Error: ERROR: null value in column “uid” violates not-null constraint

So, I setup a staging, and develop branch and now I'm getting this error when registering a new user locally: PG::Error: ERROR: null value in column "uid" violates not-null constraint DETAIL: ...
-3
votes
1answer
17 views

undefined method `name' for “aaronh-chronic”:String

Im getting this error on bundle install undefined method `name' for "aaronh-chronic":String (NoMethodError) rail version 2.3.14
0
votes
0answers
10 views

how to have a variable that will available to particular scheduled task whenever it runs again after some time?

I am starting many scheduled jobs at the same time using rufus scheduler. I want a variable in that code that will be available to only that scheduled job, when it runs again after some time. ...

1 2 3 4 5 8382
15 30 50 per page