ruby-on-rails-3.1
Creating Variable Number of one Model instances in one Form
I\'ve been trying to configure a submit form where users can add multiple records to a database at once by adding extra fields with jQuery. (users with names and emails)[详细]
2023-04-13 09:30 分类:问答How do I apply an 'active' class to my navigation based on the current_page in a DRY way? - Rails 3
So in my application.html.erb I have my navigational structure that looks something like this: <div id=\"navigation\">[详细]
2023-04-13 09:30 分类:问答rails 3.1.0: images with fingerprint not loaded in production
My problem: All images aren\'t loaded correctly when I start my app in production mode. I see only a placeholder for the image. When I copy the image-url I get \"assets/mylogo.png\". I miss the finge[详细]
2023-04-13 08:54 分类:问答How to pass a lambda to link_to
I would like to use lambda as a parameter for link_to for the code below: edit.html.erb <h2>Edit customer info</h2>[详细]
2023-04-13 08:10 分类:问答Rails : Why my first page does not show? (routing error)
I use scaffold to create my first MVC in Rails 3.1 rails generate scaffold Post name:string title:string content:text[详细]
2023-04-13 07:45 分类:问答has_many associations table confusing
My goal here is to print list of users from specified city and category with their names, address and club name.Name and address display correctly but when i add club name,says undefined method member[详细]
2023-04-13 07:42 分类:问答undefined method `sass' for #<Rails::Application::Configuration on Heroku
I\'ve looked around a bit and didn\'t find similar errors reported. I don\'t recall having modified my production.rb. And for good measure, here\'s my application.rb[详细]
2023-04-13 07:24 分类:问答How to get Gzip and Expires Header on a Rails 3.1.1 app on Heroku Cedar?
I\'m running a Rails 3.1.1 application on Heroku Cedar. By default this stack doesn\'t 开发者_如何学JAVAGzip and set Expires Headers on assets.[详细]
2023-04-13 07:17 分类:问答About signed URL's in Amazon S3
So I have been reading about signed URL\'s and some of its benefits. Especially the part about hot linking. Our app doesn\'t allow users to embed media (photo, video, audio) from our site. So signed U[详细]
2023-04-13 06:42 分类:问答Adding urls api keys in environment variable in ruby
I have a url that I am using in one of the controllers. Is there a better place to put this url? The url uses an API key and I was wondering if there is a better place to add this url and/or api key s[详细]
2023-04-13 05:45 分类:问答