I have certain page-specific js and css files that I either: Don\'t want running on development (ie tracking code)
I开发者_C百科 found a post with a headline quite similar to this one, but it didn\'t give me the answer I was looking for.
With Rails 3.1 I have to appendmy scss files with .erb to use images in my css. It\'s causing me a problem 开发者_如何学JAVAwith textmate though.
Here is the definition for model user and user_level. A user has many user levels and a user level belongs to a user.
Is there a way to separate routes in rails 3.1 when a subdomain is present? I want to use one collecti开发者_C百科on of routes when subdomains is used and one if not.
Supose I have a simple has_many relationship betwen model_1 and model_2: class Model1 < ActiveRecord::Base
I am using this gem: https://github.com/kylejginavan/youtube_it My VideosController looks like this: class VideosController < ApplicationController
In my application.css.scss I reference an image like this: body { background: #7d9ec4 url(asset-path(\'background.png\', image)) no-repeat fixed bottom center;
I\'ve got html5-rails and compass-html5 working in devlopment on rails 3.1 but when I run my app in production mode and try to visit my homepage, I get the following:
I have a helper called user_order which returns an instance of Order. Order accepts nested attributes for User and Address. My (abbreviated) form looks like this: