Loading...

Rails on Windows, Part 4/4: Rails

6,264 views

Loading...

Loading...

Transcript

The interactive transcript could not be loaded.

Loading...

Loading...

Rating is available when the video has been rented.
This feature is not available right now. Please try again later.
Published on Oct 17, 2013

Part 4 in a 4 part beginner level series covering a Windows 7 installation of Ruby on Rails 4 with the MySQL2 gem.

Part 4 focuses on installing Ruby on Rails with special attention to using bundler to compile the MySQL2 gem.

Part 1/4: Ruby - http://youtu.be/C5S7vjN6GLc
Part 2/4: Git - http://youtu.be/_5qGjRgH6aM
Part 3/4: MySQL2 gem - http://youtu.be/aynVXmpeTNc
Part 4/4: Rails - http://youtu.be/j77mvyGurxQ

This screencast assumes that the MySQL server is installed. For instructions on how to install MySQL click here: http://youtu.be/-cHS4HoEFV8

Comments • 137

1111TP1111
Hi, I followed your tutorial to the letter and everything worked like a charm until I run the server and called localhost:3000/users. When I did so I got an error: --- JSON::ParserError in Users#index --- Showing C:/dev/hello_world/app/views/layouts/application.html.erb where line #6 raised: 757: unexpected token at 'Node Commands Syntax: node {operator} [options] [arguments] Parameters:      /? or /help - Display this help message.      list - List nodes or node history or the cluster      listcores - List cores on the cluster      view - View properties of a node      online - Set nodes or node to online state      offline - Set one or more nodes to the offline state For more information about HPC command-line tools, see http://go.microsoft.com/fwlink/?LinkId=120724. ' (in C:/Ruby200/lib/ruby/gems/2.0.0/gems/turbolinks-2.2.0/lib/assets/javascripts/turbolinks.js.coffee) Extracted source (around line #6): 3. <head> 4. <title>HelloWorld</title> 5. <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %> 6. <%= javascript_include_tag "application", "data-turbolinks-track" => true %> 7. <%= csrf_meta_tags %> 8. </head> 9. <body> Rails.root: C:/dev/hello_world Any suggestions? Thanks.
View 9 replies
Hide replies
NGV TV
at the end the is what i get when i try running rails s (Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).)
Faisal Ishaque
encountered this problem: ExecJS::ProgramError in Users#index seeked help from friends and the web, found a few solutions, finally added node.js and everything worked. Amazing tutorials !!!
Prakash Kumar Luitel
Thanks Jonathan, I have problem here with mysql. mysql -v is not showing i.e I think mysql is not settled. How can I check what the problem is and to settle it? I got stuck from this step. Otherwise it is working fine for me.
dan wright
Brilliant mate I think I've actually done it after a lot of effort I managed to do it  I feel so stupid but just installing this was an achievement Do you have any recommendation for that sublime thing I don't want to pay for that part for the programme when I could get one for free 
View 15 replies
Hide replies
John LaRose
Johnathan, thank you fro the post.  I seem to be running into some trouble at around the 5min mark when we create hello_world mysql. It get this error " Gem files will remain installed in C:/Ruby200/lib/ruby/gems/2.0.0/gems/mysql2-0. 3.14 for inspection. Results logged to C:/Ruby200/lib/ruby/gems/2.0.0/gems/mysql2-0.3.14/ext/mysql2/g em_make.out An error occurred while installing mysql2 (0.3.14), and Bundler cannot continue. Make sure that `gem install mysql2 -v '0.3.14'` succeeds before bundling. " any advice?
View 3 replies
Hide replies
gaurav425
HI Jonathon, Again Great video and Thanks. When I run the following command as suggested in your video - E:\Gaurav\ap01\dev>bundle config build.mysql2 --with-mysql-dir=E:\Gaurav\ap01\my sql-connector-c-noinstall-6.0.2-win32 I get the following error - DL is deprecated, please use Fiddle Question - Is this an error or warning and how do I make sure that things are ok after executing above command..
noneyabidnezz
Can anyone help me out? The thing is, I've done every step of this video series in the correct order and conscientiously, and I haven't run into trouble until I tried to install rails using the gem command. I'm in the c:\dev directory, and I had installed the gem json previously, but now my command prompt won't allow me to receive any more gems, saying that "gem is not recognized as an internal or external...". This is very frustrating, seeing as this is the last part of the video series, and ANY help would be very appreciated! btw, I'm running on a windows 8 machine, but like I said, I haven't run into trouble until now.
View 10 replies
Hide replies
Ayesha Siddika
Hi Jonathan, every time I try to install bundle I get this error " Gem files will remain installed in C:/Ruby200/lib/ruby/gems/2.0.0/gems/mysql2-0. 3.14 for inspection. Results logged to C:/Ruby200/lib/ruby/gems/2.0.0/gems/mysql2-0.3.14/ext/mysql2/g em_make.out An error occurred while installing mysql2 (0.3.14), and Bundler cannot continue. Make sure that `gem install mysql2 -v '0.3.14'` succeeds before bundling. What should I do in this case?
View reply
Hide replies
Ahmed Osman
hi, i followed every step n it was helpful thanks but when i want to put something on my blog it says "attr_accessor unfind" how can i add in my gemfile then bundle it...thnx
When autoplay is enabled, a suggested video will automatically play next.

Up next


to add this to Watch Later

Add to

Loading playlists...