Tagged Questions
3
votes
0answers
1k views
render :update on Rails 3.1.0 gives me Missing Template update
I'm working with rails 3.1.0 and this is my first application on 3.1.0
I have a remote link:
link_to "my link",{:controller=>"my_controller",:action=>"my_action"},:remote=>true
and in ...
2
votes
0answers
51 views
How to destroy folders in a custom generator
I'm having a bit silly issue by creating my own generator in rails using Thor.
It turns out to be automatic that when you run your generator and it creates files in your code base, let's say
rails ...
2
votes
0answers
61 views
using has_secure_password and oauth (such as facebook) authentication
I am interested in using both of these authentication schemes but setting the user model to has_secure_password forces a validation on password_digest. I am curious if there is a standarized way for ...
2
votes
0answers
131 views
Rails 3: How to restrict access to the web interface for adding oauth authorized applications using Doorkeeper gem
I have a Rails Application Which uses Device + doorkeeper.I am also using cancan for Role Management.In my application i uses http://localhost:3000/oauth/applications/new for registering my ...
2
votes
0answers
130 views
LoadError when using ActiveSupport Concerns
I have a load_missing_constant error when using Concerns. Only if I start rake tasks. Rails server/console starts normally.
# app/models/journey.rb
class Journey < CouchRest::Model::Base
include ...
2
votes
0answers
175 views
Unable to push the method to the rabbitmq queue
I am working on rabbitmq and trying to push a method to a queue from my ruby on rails app and I am running a server side ruby script to read the queue and execute the method which is send in the ...
2
votes
0answers
4k views
General Routing to Active Admin - Rails 3.1
I'm currently trying to use Active Admin Gem with an existing Rails 3.1 app already configured with devise. This app uses a after_sign_in_path_for method declared in application controller.
I ...
2
votes
0answers
319 views
checkbox not working for device and jquerymobile
just working on a simple signup form with devise and i use jquerymobile for my mobile layout but whenever i try to sign up and i check the checkbox it does no send the value to the database. how can i ...
2
votes
0answers
265 views
how to Use google_chart gem in rails
I am trying to represent data using the google_charts gem but it does not seem to work for me i copied the sample code in the rdoc and tried it, i keep getting the error undefined method pie_chart for ...
2
votes
0answers
91 views
Exclude certain subdomains from accessing session in Rails 3.1
When using :domain => :all on sessions in 3.1 is it possible to exclude certain subdomains? I'm using a subdomain CDN with s3 bucket and would like to make it cookie-free when requesting images.
2
votes
0answers
223 views
Rails gives me an unique error: RuntimeError: Session collision
I get this error:
RuntimeError: Session collision on '"6a17879bbd78f0ee4dbc823e3cd50682"'
The app is configured using: unicorn, memcached.
session_store.rb is:
...
2
votes
0answers
192 views
Rails 3.1 app with integrated webdav and authentication?
I would like to enable WebDav for Rails 3.1 application, where I use Devise for authentication and CanCan for authorization.
So far I turned on WebDav and works fine. Is it possible to use Devise ...
2
votes
0answers
234 views
How to link inside a Rails 3.1 engine from within main_app?
Is there a way in Rails to link inside an engine from within the main_app?
In my application I have
resources :organizations do
mount MyEngine::Engine => "/my_engine"
resources :projects do
...
2
votes
0answers
255 views
Custom Database Type in ActiveRecord
I am using Rails 3.1.1 with PostgreSQL 9.1 and the earthdistance module.
To be able to calculate the distance between different locations properly, I have setup a column with the earth type in my ...
1
vote
0answers
16 views
How can i define my error pages in CMS?
I have rails 3.2.6 and BrowserCMS my application Error pages(404, 500) in public folder, but i need to define my Page Not Found, Access denied, Internal server error page in BrowserCMS. # Exception ...