ruby-on-rails-3.1
NoMethodError: undefined method `belong_to' for #<RSpec::Core::ExampleGroup::Nested_4:0xa05d2a0>
So this is kind of baffling me as I can\'t quite figure out why it\'s happening. This only happens on my laptop (Ubuntu 11.04), and not elsewhere.I just seem to have something weird with the setup on[详细]
2023-04-11 01:19 分类:问答Rails 3.1 Testing AJAX Capybara and Spec
I have a mountable engine that provides Javascript assets to the main Rails App, but while I try testing AJAX calls (provided by the Javascript I just mentioned) in Capybara and Spec. The database doe[详细]
2023-04-11 01:13 分类:问答sign-in-with-twitter is not working on Heroku - Rails 3.1
I am using the oa-auth and twitter gem, via this example: https://github.com/sferik/sign-in-with-twitter[详细]
2023-04-11 01:11 分类:问答Active Admin authentication conflicting with User authentication
Active Admin is a gem used for having an admin dashboard in your application. I开发者_如何转开发t uses Devise for logging in users and creates a separate admin_user model for the admins. My applicatio[详细]
2023-04-11 00:08 分类:问答How do you find and loop through a subset of an array in a haml view?
Here are my models and controllers: class FaqCategory < ActiveRecord::Base has_many :faqs, dependent: :restrict, inverse_of: :faq_category[详细]
2023-04-10 23:20 分类:问答How to "repeat-x" a sprite, generated by Compass
I have a gradient directory in my assets/images in a Rails 3.1 application. Here\'s the code I use to create a sprite from those images using Compass:[详细]
2023-04-10 22:49 分类:问答rails 3 jquery button_to remote json not decoding
I\'m using jQuery in a rails 3.1 project. I use a button_to with :remote => true : <%= button_to \"View Examples\", \"#{requisition_assign_path(@req.id, category_row.id)}?show_examples=1\", :remot[详细]
2023-04-10 22:20 分类:问答Rails 3.1 does not precompile images that are not referenced by CSS?
I am getting the following error: Sprockets::Helpers::RailsHelper::AssetPaths::AssetNotPrecompiledError in Photos#edit[详细]
2023-04-10 21:41 分类:问答ruby 1.9.2 does not support pg gem? cant heroku rake db:migrate (
i am using ruby 1.9.2 and rails 3.1.0 please help, cause i very need it to work for studying. It\'s my university project([详细]
2023-04-10 21:38 分类:问答How to use routes in .js.coffee script rails
I have this code: $(\'#my_form .submit\').click( -> $.ajax( -> type: \"post\", url: \"????\", data: $(\"#myform\").serialize(),[详细]
2023-04-10 21:36 分类:问答