background preloader

Rails Tutorial for Devise with RSpec and Cucumber

Rails Tutorial for Devise with RSpec and Cucumber
Devise with RSpec and Cucumber Introduction Ruby on Rails tutorial showing how to create a Rails 3.2 application using Devise with RSpec and Cucumber. Devise provides ready-made authentication and user management. The combination of Devise, RSpec, and Cucumber is the foundation for many real-world Rails applications. Is It for You? This tutorial is for experienced Rails developers as well as startup founders or hobbyist coders who are new to Rails. Experienced developers will find the complete application on GitHub; this tutorial provides the detail and background to understand the implementation in depth. For Rails beginners, this tutorial describes each step that you must follow to create the application. This is one in a series of Rails example apps and tutorials from the RailsApps Project. This example application uses ActiveRecord and a SQLite database. For more complex applications that use Devise, CanCan, and Twitter Bootstrap, see: How to Support the Project Before You Start Assumptions Related:  Ruby on rails

Rails Tutorial for Devise with CanCan and Twitter Bootstrap Basic Tutorials Devise, RSpec, Cucumber Devise, Mongoid OmniAuth, Mongoid Subdomains Premium Tutorials Twitter Bootstrap, Devise, CanCan Startup Prelaunch Signup App Close Click a link to any tutorial for instant access. The tutorials. One of the best resources for Rails developers, tons of useful tutorials, advice, best practices... @rails_apps Awesome tutorials covering #rails, #mongoid, #devise. Big thanks to @rails_apps for providing some great RoR starter apps and tutorials. Devise with CanCan and Twitter Bootstrap Authentication with Authorization plus Twitter Bootstrap for Rails. Devise gives you ready-made authentication and user management. CanCan provides authorization for administrator access. Twitter Bootstrap is a popular front-end framework for CSS styling. RSpec and Cucumber for testing and behavior-driven development. Hobo Basic Tutorials Online Single User No Membership Student "Devise with CanCan and Twitter Bootstrap" Ebook Ebook only One-time Purchase $5 one-time Pro $19/month Team $349/year

ruby on rails - How to seed the production database using the Capistrano gem Open Source Rails RailsApps/rails3-devise-rspec-cucumber Better Specs Rails Tutorial for a Startup Prelaunch Signup Site by Daniel Kehoe Last updated 8 September 2012 Note: This tutorial is overdue for a round of revisions since it no longer matches the current rails-prelaunch-signup example application. Ruby on Rails tutorial showing how to create a “beta launching soon” application for a startup prelaunch site with a signup page. Screenshot: Read an interview with Michael Gajda of about how he used the rails-prelaunch-signup example to launch his startup site. Follow on Twitter Follow the project on Twitter: @rails_apps . Introduction The initial app for a typical web startup announces the founders’ plans and encourages visitors to enter an email address for future notification of the site’s launch. But why build it yourself if others have already done so? eliminate effort spent building an application that meets a common need; offer code that is already implemented and tested by a large community; provide a well-thought-out app containing most of the features you’ll need. Tutorial Hosting

evrone/quiet_assets arantius/resurrect-pages RSpec Best Practices Click here to view the complete list of tools reviews This article was originally published in the Spring 2011 issue of Methods & Tools RSpec Best Practices Jared Carroll, Carbon Five, RSpec is a Behavior-Driven Development tool for Ruby programmers. Web Site: tested: 2.5License & Pricing: MIT License, open source / freeSupport: Community RSpec is a great tool in the behavior driven design process of writing human readable specifictions that direct and validate the development of your application. First #describe What You Are Doing Begin by using #describe for each of the methods you plan on defining, passing the method’s name as the argument. describe User do describe '.authenticate' do end describe '.admins' do end describe '#admin?' Then Establish The #context Next use #context to explain the different scenarios in which the method could be executed. For example, the following method has two execution paths: Lose The Should Before:

#275 How I Test Here I show how I would add tests to the password reset feature created in the previous episode. I use RSpec, Capybara, Factory Girl, and Guard to make request, model, and mailer specs. Download: source codeProject Files in Zip (92.2 KB)mp4Full Size H.264 Video (26.4 MB)m4vSmaller H.264 Video (16.1 MB)webmFull Size VP8 Video (18.1 MB)ogvFull Size Theora Video (37.8 MB) Rails Tutorial for Devise with Mongoid by Daniel Kehoe Last updated 19 August 2012 Ruby on Rails tutorial showing how to create a Rails 3.2 application using Devise with Mongoid. Devise gives you ready-made authentication and user management. Similar Examples and Tutorials See a list of additional Rails examples, tutorials, and starter apps. Follow on Twitter Follow the project on Twitter: rails_apps. Tutorial This tutorial documents each step that you must follow to create this application. Before You Start If you follow this tutorial closely, you’ll have a working application that closely matches the example app in this GitHub repository. If you clone and install the example app and find problems or wish to suggest improvements, please create a GitHub issue. To improve this tutorial, please leave comments below. Installing MongoDB If you don’t have MongoDB installed on your computer, you’ll need to install it and set it up to be always running on your computer (run at launch). brew install mongodb gem 'mongoid', '~> 3.0.1' Fork Clone

guard/guard-livereload Offres d’hébergement Ruby on Rails Ruby on Rails est un Framework basé sur le langage de programmation Ruby. Il est spécialement conçu pour des développements rapides et articulés sur la méthodologie Agile. Le principe de Ruby est de privilégier les conventions plutôt que les configurations. Pour votre Hébergement Ruby on Rails et la production de vos applications Rails, Railsprod vous propose trois offres mutualisées disposant de Ruby on Rails. Votre hébergement Ruby on Rails à la carte… Espace Disque : 500 MoBase de données : 100 MoEnvironnement : ProductionBackup quotidien : non inclusTrafic : illimitéAccès shell : inclusGems : incluses *Frais d’installation : inclusSouscrire Espace Disque : 2 GoBase de données : 200 MoEnvironnement : ProductionBackup quotidien : inclusTrafic : illimitéAccès shell : inclusGems : incluses *Frais d’installation : inclusSouscrire * Sous réserve d’approbation du support technique. Besoin d’une solution de gestion de projets ? Redmine est un logiciel de gestion de projets en ligne.

How I Test In a recent discussion on Google+, a friend of mine commented, "Test-Driven Development (TDD) and Behavior-Driven Development (BDD) is Ivory Tower BS." This prompted me to think about my first project, how I felt the same way then, and how I feel about it now. Since that first project, I've developed a rhythm of TDD/BDD that not only works for me, but for the client as well. Ruby on Rails ships with a test suite, called Test Unit, but many developers prefer to use RSpec, Cucumber, or some combination of the two. Personally, I prefer the latter, using a combination of both. RSpec From the RSpec site: RSpec is a testing tool for the Ruby programming language. RSpec provides a powerful DSL that is useful for both unit and integration testing. Cucumber I've found the benefits of TDD/BDD far outweigh the cons. Cucumber is an integration and acceptance testing framework that supports Ruby, Java, .NET, Flex, and a host of other web languages and frameworks. The Setup Within the Gemfile, add: