Rails Association Help for multiple models [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 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 :)

Related

Good shopping cart gem for 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 need to add some functions to my app-catalog of car spare parts. I see a lot of questions on so as my. But main difference is, that i don't need something like spree gem, that also build catalog... I need to add only to my catalog shopping cart (add to cart, cart, order). Are there any good solutions? Simple cart (without e-pay systems etc)??? Becouse spree is to hard to customize (i will say to more simple it)
you can use the Saas product Shopify, it is best.

Getting started to Rails app testing [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 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

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

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

Creating a stock portfolio in 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 11 years ago.
I am new here and new to ruby on rails.
I am trying to create a rails app where users can create their own stock portfolios.
I want to use the yahoo finance gem but i don't know where to start .
I have created the rails login using devise .
Any tutorials out their ?
Thank you
You should prototype this on paper first, make a pretend portfolio on a notepad.
Once you have found what you want to store, create diagram out of it then make your models.

Resources