On Sun, Jan 8, 2012 at 1:02 AM, Soichi Ishida <li...@ruby-forum.com> wrote:
> Hi. I have started Rails a few days ago. > With the help of a book (written in Japanese), I'm working on a tutorial > program which simply shows how to include jQuery file. > > Rails version 3.1.3 > > According to the book, there must be a directory > > public/javascript > > If I'm not wrong, in rails 3.x that folder no longer exists > and in "application.rb" > > config.action_view.javascript_expansions[:defaults] = %w(jquery > rails) > > and in "application.html.erb" > > <!DOCTYPE html> > <html> > <head> > <title>OnlineDictionary</title> > <%= stylesheet_link_tag "application" %> > <%= javascript_include_tag :defaults %> > > Normally I use <%= javascript_include_tag "application"%> because it will get all the js that comes from the folder assets. Now my question is... what version of rails that book is using? Javier -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.