ruby-on-rails-3.1
Rails 3.1 assets not recognizing new images uploaded by rmagick until server restart
I have my Rails 3.1.0 application running with passenger in production environment and I have a section where the application allows the user to chang开发者_C百科e his profile picture so I upload the[详细]
2023-04-12 22:05 分类:问答Rails Runner throwing: undefined local variable or method `app' for main:Object (NameError)
I got a working Rails App (3.1.1). Now I wrote a runner (saved in app folder). When starting the runner with:[详细]
2023-04-12 20:33 分类:问答Is COMB GUID a good idea with Rails 3.1 if I use GUIDs for primary keys?
I\'m using Rails 3.1 with PostgreSQL 8.4. Let\'s assume I want/need to use GUID primary keys. One potential drawback is index fragmentation. In MS SQL, a recommended solution for that is to use specia[详细]
2023-04-12 20:17 分类:问答ActiveAdmin - customising the records that are shown
So I\'ve got an app where users (Devise) have the ability to see either all, or a subset of main model (in this case Schools), depending on whether the user is at branch, region or national level.[详细]
2023-04-12 19:56 分类:问答Output the name of the view being rendered in rails 3.1
How does this translate to Rails 3.1? @template.instance_variable_get(:@_first_render).name It\'s supposed to output the name of the view being rendered. Note: it\'s not always the same as params开[详细]
2023-04-12 19:26 分类:问答Rails 3.1 multiple objects on one form
I\'ve checked out a lot of questions for putting multiple objects on one form, but they seem to be out of date.[详细]
2023-04-12 18:19 分类:问答How to include an id in the nested form?
I have a nested form ,and i want to include city_id in the stores model,is this <%= s.hidden_field :city_id, @city.id %> correct? If yes what do i add in the controller after that? If it is not[详细]
2023-04-12 18:12 分类:问答update_attributes doesn't take a role
I have a model with two attr_accessible lines attr_accessible ...., :as => :user at开发者_开发问答tr_accessible ...., :as => :admin[详细]
2023-04-12 17:54 分类:问答cant use has_secure_password, password_digest error
Good evening. I have a problem. i am using has_secure_password and cause of this i have an error undefined methodpassword_digest=\' for #`,[详细]
2023-04-12 16:46 分类:问答Rails server encountering malloc error
I started a new rails/neo4j project and using a generator to create models, controllers, routes, tests and views for a Users model (as detailed in http://neo4j.rubyforge.org/guides/rails3.html).[详细]
2023-04-12 16:10 分类:问答