ruby-on-rails
Paperclip and ActiveRecord: search for objects with attached files
in Rails 2.3.6 I have a User model:开发者_StackOverflow class User < ActiveRecord::Base has_attached_file :avatar,[详细]
2023-04-13 07:25 分类:问答What is the right /best place to store Configatron configuration in a Rails app?
I\'m using the configatron gem for a new Rails app that is backed up by ActiveRecord. Some of my configatron settings are set in a file and some are pulled from DB, as they will change from time to ti[详细]
2023-04-13 07:25 分类:问答max-requests-per-worker in unicorn
I sought, but did not find, a max-requests-per-worker option in unicorn similar to gunicorn\'s max_requests or apache\'s MaxRequestsPerChild.开发者_运维百科[详细]
2023-04-13 06:35 分类:问答Use excel or an other editor to write data before importing (with foreign keys)
I am making a website in rails with a lot of data. This data was writen by my client on an Excel file. But开发者_Go百科 i have a problem, how to manage foreign keys?[详细]
2023-04-13 06:19 分类:问答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 分类:问答rails new project_name using rvm
I use rvm in my rails project and specify gem versions in the Gemfile. However, my problem right now is different. I want to create a rails 3.1 project using rails new project_name but my current ver[详细]
2023-04-13 05:37 分类:问答Rails 3.1: How do i add an initializer that runs after gem initializers?
My scaffold generator stopped working after we updated factory girl.Here\'s why happened.First, my config file tries to set up certain defaults for scaffold generation, like so:[详细]
2023-04-13 05:26 分类:问答Rails keeps telling me that it's not currently installed
I use rvm to manage different rubies and their gemsets. My shell is zsh with oh-my-zsh configured with basic settings. Enabled oh-my-zsh plugins are ruby, rails, osx, and git. Here\'s the command I us[详细]
2023-04-13 05:23 分类:问答Updating to 3.1.1 following RailsTutorial.org screencast
I am following the lesson 13 screencast from Railstutorial.org and am hung up on the error below: Failures:[详细]
2023-04-13 05:21 分类:问答Ruby On Rails 3 Tutorial Chap 8: User Controller implementation
I am in chapter 8 of the book, where we are trying to implement the signup functionality for the sample app with actions \"new\" and \"create\". Here is my questions about these 2 methods/actions,[详细]
2023-04-13 05:19 分类:问答