Ruby on Rails is an open-source web development framework written in Ruby. Ruby on Rails follows the principle of convention over configuration, freeing you from having to re-invent things to stay productive. Ruby on Rails 4.0 is now available.
6
votes
0answers
1k views
god doesn't stop unicorn
I have this file
rails_env = ENV['RAILS_ENV'] || 'development'
rails_root = ENV['RAILS_ROOT'] || "/home/luiz/rails_dev/api"
God.watch do |w|
w.name = "unicorn"
w.interval = 30.seconds # default
...
4
votes
0answers
99 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
176 views
Use the same model in two active admin classes
I'm working on an ActiveAdmin app for a large production application. I'm currently trying to use the same model for two activeadmin "entities".
So, say I have
class Person < ActiveRecord::Base
...
4
votes
0answers
358 views
Can I use HAML-style embedded ruby with Coffeebeans / js.coffee views?
My rails controller returns JS often, and I'm using Coffeebeans to allow me to have js.coffee views. The only problem with this is that it uses the <%= ... %> syntax for embedded Ruby... I would ...
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
416 views
undefined method 'path' for nil:NilClass using chargify_api_ares gem
I feel like this should be a simple problem, but I'm pulling my hair out trying to track it down. I'm installed the chargify_api_ares gem, but can't do even basic things such as
...
3
votes
0answers
568 views
uninitialized constant DashboardController for localhost: when accesing site area accept admin side
hello i have issue with "uninitialized constant DashboardController" when i open my site with localhost:3000. it shows me above error. its is not allowing me to enter user side.
i have lots of ...
3
votes
0answers
183 views
RefineryCMS Custom Layout Template works in host app but not with engine
So I followed the refinery guide to create a custom layout template. I switched my about page to use my new template in the advanced options and it worked like a charm.
Then I created a new engine ...
3
votes
0answers
504 views
Unexpected error while processing request: invalid byte sequence in UTF-8
I am getting this error when trying to pass in an image:
!! Unexpected error while processing request: invalid byte sequence in UTF-8
The weird thing is that the raise (as below) did not get ...
3
votes
0answers
137 views
Stack trace from javascript error from therubyracer / v8 in rails 3
I am running some javascript inside a rails 3 app using therubyracer and v8
If anything goes wrong, the error message gets sent to me via email through the usual rails 3 exception notification ...
3
votes
0answers
117 views
Capybara-Webkit close webkit_server
I am using Capybara-Webkit to automate some work on a website.
This is done in the background in a Resque task. After some executions there are quiet a lot webkit_server processes, that weren't closed ...
3
votes
0answers
152 views
Creating children objects of not saved model in Backbone using Backbone-relational
I'm new to backbone. I have rails3 app. These are my backbone models:
class AppName.Models.Order extends Backbone.RelationalModel
paramRoot: 'order'
relations: [
type: Backbone.HasMany
...
3
votes
0answers
87 views
database.yml proxy? or equivalent?
I am looking for a way to run a rails server on one network that is driven by a database on a different network, where both are separated by a proxy server. I have the proxy server URL.
I have the ...
3
votes
0answers
146 views
omniauth (google_apps) Request phase initiated. blocking my app
I just implement Omniauth+Devise to signin using Google Apps, but when doing the request and the "Request phase initiated" my app get blocked, i tried a request in another window and it didnt execute ...
3
votes
0answers
176 views
Using oink on Heroku by creating Hodel 3000 compliant logs
I am having a memory leak and am trying to track it down, therefore im trying to use oink on Heroku servers. Since Heroku does not provide log archives, im exporting them to Amazon S3 through the ...