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

4
votes
0answers
45 views

Rails request with HTTP_ACCEPT header of `: */*`

my rails app threw an exception because of a ActionView::MissingTemplate-exception. This was because a request had a http header ACCEPT with the value : */*. The app couldn't find a template for this ...
4
votes
0answers
203 views

Recurring rails error on Heroku/Unicorn - 'execution expired', an ActionView::Template::Error

My question is similar to the following, but is happening under slightly different circumstances. Rails: execution expired on time_zone_select My setup is: Rails 3.2.13 Unicorn 4.6.2 Mongoid ...
4
votes
0answers
101 views

what are the limitations of inverse_of in rails 3 with ActiveRecord

I've been reading about inverse_of and everything I'm seeing online seems inconsistent and confuses me. If you look here, you can see There are a few limitations to inverse_of support: ...
4
votes
0answers
797 views

Howto set a default condition with fieldname on ransack?

I have a user and a roles model, both are associated via habtm and there is a forum model associated to roles. In ransack search form for forums i want to filter by users who have a specific role (by ...
4
votes
0answers
256 views

stream partial views in Ruby on Rails 3.2+

I'm looking for a railsy way to stream partial views in Rails 3.2+. Right now streaming is supported only for yielding parts in layout from template via provide. But say I have n posts on a blog ...
4
votes
0answers
336 views

How do you set up chainable scopes based on relations in Mongoid

Problem fixed... Turned out there was an active record method that got over written, now everything works as expected I am trying to set up scopes so I can make a call that looks like ...
3
votes
0answers
94 views
+50

Authenticity Token being created differently when using render_to_string

I'm generating a small form through render_to_string and for some reason the CSRF token is not being generated correctly (i.e. it's different from the header and the user is logged out on submit, ...
3
votes
0answers
126 views

Why am I unable to reproduce the GitHub Email Incident issue?

GitHub reported an issue in Rails 3.2.13 scoping behavior that caused an email incident: https://github.com/blog/1440-today-s-email-incident I put together a small sample app with fixtures/tests ...
3
votes
0answers
69 views

Kill off connections that are not consuming Rabbitmq

I am having a bit of an issue where if the client crashes or if it loses connectivity it does not properly close the connection. This results in several idle connections that keep adding up. The ...
3
votes
0answers
58 views

I18n strange behaviour

I am using I18n with Redis store, and have a strange behavior after updating to Rails 3.2.13 [6] pry(main)> I18n.t("my_website_field") => "M" [7] pry(main)> $redis.get("en.my_website_field") ...
3
votes
0answers
112 views

Framework and database adapter with Hexagonal Architecture and DCI pattern

I try to design a web based application in Ruby. I have developed a simple core application implementing DCI paradigm in hexagonal architecture without framework and database. There are small hexagons ...
3
votes
0answers
146 views

Newline gets prepended when sending form with Capybara

I have this test in a Rails app, using Capybara: within "#register" do fill_in "Biography (optionnal)", :with => "Hello world!" end click_on "Save" # Check that form is repopulated with old ...
3
votes
0answers
147 views

Pow.cx Rails Assets Not Loading (IOError: Closed Stream)

Assets are timing out for my Rails app served locally through Pow. When I visit an asset's url directly (eg. '/assets/home.css') I'm presented with this error: {"name":"IOError","message":"closed ...
3
votes
0answers
173 views

How can I create a chained certificate using self signed chains of certificate

I am trying to convert my rails application to work as https://. For testing purpose I created a self signed certificate using openssl. I am using nginx as web server. Then I configured the nginx ...
3
votes
0answers
118 views

Rails engine: rake routes show its routes but on rspec execution “No route matches” is thrown

I'm trying to test a controller that is inside an engine my application is using. The spec is not within the engine, but in the application itself (I tried to test within the engine but also had ...

1 2 3 4 5 1761
15 30 50 per page