Howdy,

Using rails 3.2.3 and ruby 2.0.0dev. Running rails s, doesn't seem to 
include the javascript. This causes Delete/destroy to never work. It just 
defaults to a GET and thus show.

I tested this in a barebones project

rails new testingjs
--uncomment ruby race in gemfile
bundle install
rails g scaffoled testingmodel value:integer
rake db:migrate
rails s

*voila* a rails app in which you can't delete anything, all from 
autogenerated code. How would I go about fixing this so I can actually use 
css/js? I figure theres a file somewhere thats borked.

Also I don't know much about rails "asset pipeline" but the JS/CSS files 
being served look like this

// This is a manifest file that'll be compiled into application.js, which 
> will include all the files
> // listed below.
> //
> // Any JavaScript/Coffee file within this directory, 
> lib/assets/javascripts, vendor/assets/javascripts,
> // or vendor/assets/javascripts of plugins, if any, can be referenced here 
> using a relative path.
> //
> // It's not advisable to add code directly here, but if you do, it'll 
> appear at the bottom of the
> // the compiled file.
> //
> // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, 
> ANY BLANK LINE SHOULD
> // GO AFTER THE REQUIRES BELOW.
> //
> //= require jquery
> //= require jquery_ujs
> //= require_tree .
> ;


Which seems wrong to me, I don't think the client/browser should be seeing 
that file. 

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/vUMYRmIivwYJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to