ruby-on-rails-3
Rails 3.1 assets pipline CSS and action mailer
I am wondering if it is just my lac开发者_Python百科k of understanding. I have a action mailer that using a bunch of asset via the image_tag and config.action_mailer.asset_host in the config. As I am[详细]
2023-04-13 05:13 分类:问答What's the best way to handle logging in and out with multiples scopes/roles with Rails/Devise?
I\'ve been searching through the Devise RDocs, Google, on this site for answers to my question, but no luck.[详细]
2023-04-13 04:50 分类:问答How do I lock records in Rails 3 for a specific amount of time?
What I want to do is basically have a user obtain the lock on a record and have it for a specific amount of time so they can make changes to it, like wikipedia. So lets say a wikipedia article gives t[详细]
2023-04-13 04:00 分类:问答Adding name value with link_to
I\'m using a link_to to create an object in my Rails 3 app. Searching has given me the proper way to use link_to with the :post method, but I\'m wondering if using link_to to pass in a name value for[详细]
2023-04-13 03:39 分类:问答Sorting Strings in Rails using Order
I Have a model \"Msg\" and it has a content as a string and a username as a string as well at the moment all my Msgs have their content Lor开发者_运维知识库em Ipsumed and I\'d like to sort them out[详细]
2023-04-13 03:35 分类:问答Using form_for with Awesome Nested Set
I have a Comment model with the acts_as_nested_set enabled, but when I try to do something like this (for nested comments), i receive the error \"comment_comments_path not found\", presumably because[详细]
2023-04-13 03:35 分类:问答how to fill the default value of the "input" tag dynamically
In my vote system, i have the input tag of the \"expire_at\".and what i want to do is that fill the input tag dynamically with the date.the date is 7days later.[详细]
2023-04-13 03:30 分类:问答Rails 3.1 including style sheet, browser isn't using it
My team hacked together some style sheets using Adobe Muse. I\'ve included those in my assets folder and am able to serve them just fine.[详细]
2023-04-13 03:27 分类:问答rails acts_as_list position auto increment
I am using the acts_as_list gem but when creating new Object the position should automatic increase in size and order position ASC.[详细]
2023-04-13 02:55 分类:问答Rails calling a controller from another model's view
I have a post model and an upvote model. upvote.rb class Upvote < ActiveRecord::Base has_one :user belongs_to :post[详细]
2023-04-13 02:28 分类:问答