Getting started to Rails app testing [closed] - ruby-on-rails

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I want you guys to tell em the best options when it comes to testing Rails code. In special testing Mongoid models and standard controllers, thanks!

Meet your new best friends:
RSpec
FactoryGirl
Capybara
Guard and Spork
See this RailsCast: http://railscasts.com/episodes/275-how-i-test

For mongoid
https://github.com/evansagge/mongoid-rspec

I really like this blog article series. It goes step by step, shows what you can test in different contexts (Model, Controller, Integration) and just provides a great overview.
http://everydayrails.com/2012/03/12/testing-series-intro.html

Related

Is "test" a reserved word in Rails 3? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
It'd be nice to know before I change my heuristic model to a test model, in the interests of readability.
This page suggests it's a reserved word, but the language there is ambigous.
I created a Rails 3 demo app with scaffolding based on a Test model and all seemed to be working just fine, but as soon as I tried to run an Rspec test, it all fell apart, so the answer is yes, it's a reserved word.

Rails Association Help for multiple models [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Can i get some suggestions on building association models to my app.
I basically have a Project model which will hold the various models:
one client
many partners
1 accounts
would i just do an association with each of those models to the Project or should it be some kind of 'association through'
I would suggest go through the association basics and then add some code for use to help you out.
There is ample of information available.
http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html
http://www.tutorialspoint.com/ruby-on-rails/rails-models.htm
http://railscasts.com/episodes/3-find-through-association
http://www.slideshare.net/JamesEdwardGrayII/associations-in-rails
ruby on rails associations newbie
http://guides.rubyonrails.org/association_basics.html
Hashhh that should be enough... :D
Go through the basics and whatever you dont understand we are here to help you :)

How do I create a Wiki using Ruby on Rails? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I was recently given a task to create a blog using Ruby on Rails. So I found a very helpful guide, which was very helpful for the blog. However, there seems to be a short supply of good Ruby-on-Rails guides on creating a wiki that is, up to date, makes sense and accurate.
You can check existing gems for wikis: https://www.ruby-toolbox.com/categories/wiki_apps
There are 3 rails-based wikis.
The most active is https://github.com/alno/irwi.
Other two, https://github.com/queso/signal-wiki and https://github.com/AndyMoreland/kii, was not updated for years, but still you can try to look through sources to get the base idea

Data mining RoR-app for dribbble-shots [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to data mine dribbble.com so I can make an app that registers when the best time is to upload a shot to dribbble is. I've seen someone do it for stories on news.ycombinator.com/ (Hacker News): http://hnpickup.appspot.com/.
I don't really know where to start since I'm still fairly new to RoR. I hope you can give me some pointers.
I'd like to run the app on Heroku, if that matters.
Michael Hartl's tutorial is a good place to start for this task. The internal logic would need to change to be yours but I think that is down the road a bit. As for charting there is FusionCharts and HighCharts to name a couple of options I am familiar with.
I ended up using Heroku scheduler to scrape dribbble, using their own API.

Forms in Ruby on Rails and MySQL [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I would like to know how to make a simple form that saves the results to a database. Also how to make a spreadsheet from a database? Thanks!
There are a lot of answer to your question. A couple of good places to start for the forms aspect would be the Ruby on Rails Guides and Rails for Zombies.
As for the spreadsheet... well... that is a whole lot more. Once you have gone through the first two resources and done a few practice apps you should check out the Spreadsheet Library at Rubyforge

Resources