Sunday, May 2, 2010

Ruby rutorials

Ruby on Rails Tutorial book
http://ruby.railstutorial.org/ruby-on-rails-tutorial-book

Show Me Do
http://showmedo.com/videotutorials/ruby

Mac Ruby:
http://www.macruby.org
http://www.macruby.org/trac/wiki

Other resources:
http://rubysource.com/category/getting-started/
http://rubyonrails.org
http://www.zepho.com
http://www.zepho.com/download
http://www.rubyonrails.ru
http://peepcode.com
http://www.rubyplus.org
http://podcast.sdruby.com
http://railscasts.com
http://railslab.newrelic.com/scaling-rails
http://www.railsforum.ru
http://www.tutorialspoint.com/index.htm
http://www.rubyplus.org
http://djbook.ru/ch03s03.html
http://coenraets.com/tutorials/flexonrails/flexonrails.html
http://live.julik.nl/2005/11/ror-for-starters
http://blog.igorekk.com
http://www.djangoproject.com
http://www.railsecommerce.com
http://ru.wikipedia.org/wiki/Ruby_on_Rails

Beginning Ruby on Rails E-Commerce
http://weblog.rubyonrails.org/2006/11/13/beginning-ruby-on-rails-e-commerce

Screencasts:
http://rubyonrails.org/screencasts
http://railscasts.com
http://www.vimeo.com/7655277

Ruby IDE:

Ruby code complete:
http://wiki.netbeans.org/RubyCodeTemplates



Setup Rails

http://railsinstaller.org
http://rubyonrails.org
http://gembundler.com

Gems:
http://gembundler.com
http://files.rubyforge.vm.bytemark.co.uk
http://rubyforge.org/frs/?group_id=8883
http://mperham.github.com/sidekiq Simple, efficient message processing for your Rails 3 application.
delayed_job — фоновая обработка любых заданий

immortal Гем от разработчиков Teambox, который позволяет вместо удаления записи помечать ее как 'deleted'. Бывает очень полезно, если мы хотим оградить неосторожного пользователя от потери данных.

Settingslogic - Существует довольно большое кол-во гемов, решающих проблему настроек в приложении. Весьма удачной реализацией является Settingslogic от небезызвестного Бена Джонсона. Простой, легковесный, использует YML-файл. 


Subdomains - An example Rails 3.2 app with subdomains and authentication using Devise. With a tutorial.
Если понадобится работать с S3 хранилищем от Amazon то можно пользоваться его локальным фейком в ходе разработки: Fake S3 http://habrahabr.ru/post/142566/#habracut

Install Errors

http://stackoverflow.com/questions/6650567/installing-linecache19-for-ruby-1-9-2-via-rvm
http://stackoverflow.com/questions/4418/how-do-i-update-ruby-gems-from-behind-a-proxy-isa-ntlm

RubyMine on Win

  1. Install Ruby: http://rubyinstaller.org/downloads/
  2. Install Development Kit: http://rubyinstaller.org/downloads/ (install instructions)
  3. Install RubyMine
  4. Run: gem install bundler
  5. Download latest versions of linecache and ruby-debug-base19
    1. E.g. for Ruby 1.9.3-p0  following versions are needed (download):
      1. download linecache19-0.5.13.gem
      2. ruby-debug-base19-0.11.26.gem
  6. Read http://blog.wyeworks.com/2011/11/1/ruby-1-9-3-and-ruby-debug
  7. Run: gem install linecache19-0.5.13.gem
  8. Run: gem install ruby-debug-base19-0.11.26.gem -- --with-ruby-include=PATH
    1. Where PATH is the path to the include folder, e.g. C:\Ruby193\include\ruby-1.9.1\ruby-1.9.3-p0
  9. Start RubyMine and do: tools->bundler->install
  10. Go to project root folder and run: rake db:migrate
  11. Enjoy
If you moved a project to another directory and you are getting an error because of a wrong working folder, them the sollution is here (source):
I also had this problem with a project copied from windows to ubuntu. The issue is that the Run Configurations that were created on the windows side contain absolute paths like c:\someproject. To fix this you do not need to recreate the project. Simple close the project then edit the workspace.xml file in your project's .idea folder and search for the term WORK DIR. In some of the VALUE attributes you will see a windows path, change them all to be  $PROJECT_DIR$ then save the file and reopen the project.
Old:

New:

The other option is to delete all the existing Run Configurations and recreate them, still easier than redoing the whole project.
I do think this is a bug, the Run Configurations should have relative (or OS independant) paths when created on windows.

Issue with rake: uninitialized constant Rake::DSL

  1. удалить все версии rake: gem uninstall rake -v 0.9.2.2, gem uninstall rake -v 0.8.7
  2. ручная установка 0.8.7: gem install rake -v 0.8.7
  3. bundle install => поставится еще 0.9.2.2
  4. Put this in your Rakefile above require 'rake': require 'rake/dsl_definition'
  5. написать/исправить в Gemfile: gem "rake", "!= 0.9.0" (это может и ненужно, но не помешает)
  6. run db:migrate

0 коммент.:

Post a Comment

Powered by Blogger.