Best way to learn how capybara and cucumber works? [closed] - ruby-on-rails-3

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I want to ask about the best resources to know how cucumber, capybara works. I know how to use them, but sometimes things go wrong I just don't know why, I thought about reading the capybara and cucumber source code, but It's a bit complicated without having a general idea about their work, so here's my question. How do you learn this things enough to understand whats happening behind and things doesn't seem like magic with tools like this?
Greetings

Cucumber and Capybara are fairly independent, so you should try to learn about each one of them individually.
I haven't used Cucumber, but I assume the web site with its wiki, examples and tutorials (see the navigation bar at the top) should be a great resource.
Regarding Capybara: Since the time you asked your question I've expanded the Capybara README a bit, so I recommend you check it out again. You should be able to get going just by reading the README top to bottom (and perhaps following its pointers into the rdoc reference). Capybara is not a very complex beast, really.

For cucumber I would recommend reading either "The RSpec Book" from pragmatic press, or find the free download of a work in progress called "the secret ninja cucumber scrolls" http://cuke4ninja.com/

Related

Ruby on Rails methods [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I an looking to delve a little deeper into Ruby On Rails and am interested in seeking more knowledge when it comes to methods. I am aware of the rails api documentation, but not being familiar with a lot of the terminology or where the specific methods can be used it is to big to be useful at this stage (hope that makes sense).
What I was looking for is any particular methods I should pay attention too, more like most commonly used, just so I can practice with them for now, then once I have grasped a better understanding then i can look at more.
Any resources or documentation that has helped anyone, please feel free to let me know
Thanks in advance
Some resources maybe help you:
Rails Tutorial
Rails Guide and about API
Some videos Rails Cast
Read book Rails 3 way
Objects On Rails
To be honest, you should probably be asking this question on Reddit or in the RoR talk group.. the reason being is that there is likely no single correct answer. Check this page out:
http://www.reddit.com/r/rails/comments/ys318/what_to_read_after_hartls_rails_tutorial/
As the title in the URI suggests, you should definitely start with Rails Tutorial by Michael Hartl.
Also see:
https://groups.google.com/forum/?hl=en&fromgroups#!forum/rubyonrails-talk

Capistrano guides? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Does anyone know of any good, detailed guides for capistrano and deploying rails applications? I'm interested in learning all the different functionality rather than just following a tutorial without really understanding what's happening.
Github made the great tutorial howto setup capistrano.
You can reference to the Capistrano Handbook and Getting start guide.
I don't know if it could be what you are looking for, but I just wrote how to make Rails 3.2, Nginx and Capistrano work http://www.lifeofadev.eu/posts/deploy-rails-3-2-with-capistrano
I've written this one, that at some point I might move off this gist:
https://gist.github.com/2161449
I agree there is/was a lack. I figured stuff out painfully, and then tried to write it up in a guide for others (and myself to refer back to)

new to ruby, rails3 or Sinatra? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I am evaluating Rails3 or Sinatra to build a new site. Both of them look interesting and not sure which one is better for new developer to Ruby. I heard Rails3 is used to build a website with complicated business logic, but Sinatra is more suitable for simple web. I want to build a website could be used in production, the initial business logic may be simple, but then I may add more features with more complex business logic later on. So, I'd appreciate if someone may help me out on my case. Thanks.
You also might consider building out your initial version in Sinatra, where you can really get your head around the various objects you'll be working with. Then, once you've gotten a prototype built, you could port it over to Rails relatively easily.
That being said, I think daddz's recommendation to use Padrino's a good one. I've really been enjoying Sinatra lately, and plan to build something with Padrino soon.
You should also take a look at Padrino. It is built on top of Sinatra and not as "complex" as Rails.
See the new slides for a quick overview: Padrino Slides
My advice is to go with rails3. And here are my reasons.
You may start with a small app but you will eventually add other functionalities later.
It has a large community and excellent screencasts at http://railscasts.com/
Since you are new to Ruby rails will get you interested in learning ruby and it will introduce you to the topics of DRY, TDD, MVC and Rest. It is little harder to grasp but it worth every minute you spend.
Now dont get me wrong. Sinatra is a great micro framework and specially for a good Ruby developer since it has a small base of code (about 1000 lines) so you can check out the code and learn few tricks. But like a said go with Rails and you wont be sorry.

What is best dojo learning material? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I just want to know what is best learning tools for learning dojo for beginner.
Also is there any video tutorials for the same.
Best way to learn dojo is to try is out yourself. I would recommend following books though:
Dojo: The Definitive Guide
Mastering Dojo (From Pragmatic Bookshelf)
http://www.sitepen.com/blog/
These are the largest collection of tutorials that I know of, and cover newer features that the books don't (though the books mentioned are invaluable). You may know about them already as pretty much any Google search for Dojo turns them up.
Also the Dojo IRC is helpful and friendly for specific question.
Download the code, demo and docs from http://download.dojotoolkit.org/release-1.10.0/ and put it in a folder in your document root.
In the folder there must be the following folders
dijit/
dojo/
dojox/
util/
Open the test file in a webbrowser
http://localhost/dojo-release-1.10.0-src/dijit/tests/layout/test_SplitContainer.html
Open the file in your favorite text editor change the code and see the result.
The test files are the main resource to learn dojo.
The util folder contains some useful scripts for combining the dojo files and minifying it. This is not that useful as beginner.

is there any better tool and easy tool than selenium? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
is there any better tool and easy tool than selenium?
Selenium is used by the likes of Google, Ebay, Microsoft, Apple so its a good tool and is easy enough to use.
I have a number of tutorials on my site that should get you going.
WebTest:
WebTest Key Characteristics
Selenium Webtest
WebDriver: Introducing Webdriver
Sahi, http://sahi.co.in would be the simpler better alternative. Automatic Waits, No XPaths, excellent handling of AJAX and dynamic ids, simple robust APIs would be some of the areas where Sahi is better. Disclaimer: we wrote Sahi.
In general Selenium is a pretty good tool, but it does have a learning curve (Most things do). Once you get used to it it is prety easy to use.