nathanvda / on_the_spot

A rails3 unobtrusive in-place-editing plugin, using jQuery/jEditable.
MIT License
132 stars 37 forks source link

No expansion found for :on_the_spot #44

Closed Mikekij closed 10 years ago

Mikekij commented 12 years ago

I added on to the spot to the gem file, ran rails g on_the_spot:install, and made the necessary edits to the routes and controller files, but when loading any page I get:

No expansion found for :on_the_spot

Seems to be complaining about a lack of style sheets. Any ideas?

nathanvda commented 12 years ago

Could you give me a bit more info:

Mikekij commented 12 years ago

Showing /Users/mikekijewski/rails_projects/QA_Manager/app/views/layouts/application.html.erb where line #8 raised:

No expansion found for :on_the_spot

Line 8 of /application.html.erb is:

7: <%= render 'layouts/stylesheets' %> 8: <%= stylesheet_link_tag :on_the_spot %>

nathanvda commented 12 years ago

I think I found the error. Could you change your Gemfile the entry for on_the_spot as follows:

gem 'on_the_spot', :git => 'http://github.com/nathanvda/on_the_spot', :branch => 'fix_generator_for_css'

then run

bundle install
rails g on_the_spot:install

and try again?

I think I fixed the generator to now correctly copy the css for rails 3.0.x projects, but currently do not have a rails 3.0.x project lying around. Could you verify it works?

onknows commented 12 years ago

It is not working for me with Rails 3.1.4 project. I think the change to Gemfile does not change much. Bundle install then doesn't install anything, I don't see install activity. At least for me it doesn't work.

nathanvda commented 12 years ago

Hi @ostraaten, are you getting the same error no expansion found for :on_the_spot in rails 3.1.4 project?

Because the fix I did was for a rails 3.0.x project, and I would expect it justs works in rails 3.1.x (because I am using the asset pipeline).

Bundle install would be blindingly fast, but it should mention that the gem now comes from the git repository at least. And afterwards (on a rails 3.0.x project at least) you should run the rails g on_the_spot:install which would copy the files.

Have you disabled the asset pipeline? So maybe you should be using the generator as well.

nathanvda commented 10 years ago

Closed due to inactivity.