search for: rushing_offenses

Displaying 4 results from an estimated 4 matches for "rushing_offenses".

2009 Jun 13
8
Removing routes to new, show, etc. in a model
...) --------show.html.erb (delete) http://localhost:3000/demos/new (should not be a route) http://localhost:3000/demos/edit (should not be a route) http://localhost:3000/demos/show (should not be a route) I tried to create a new route: map.connect "*anything", :controller => ''rushing_offenses'', :action => ''request_error'' .. and built an request_error.html.erb file so that if anyone tried to go elsewhere while within that controller it would toss them to the request_error.html.erb file (but that''s not working) I was trying to find more about RESTf...
2009 Jul 02
7
Params Merge and URL sorting/pagination
Hi all, Here''s my general setup on the specific template I''m having issues with: will_paginate for pagination custom methods for sorting 1-form for team search 1-form for search by date When searching for a team for instance, the url returned will be: /rushing_offenses?search=Florida When searching by date, the url returned will be: /rushing_offenses?compiled_on=2009-07-02 Pagination has a show all button: /rushing_offenses?numteams=120&orderby=rank&sortby=asc Pagination has a show simple button: /rushing_offenses?orderby=rank&sortby=asc If I c...
2009 Jun 07
17
ActiveRecord Classes
...9;m having a little trouble with understanding how to work out the schematic for some of my classes using ActiveRecord when a file is in my lib directory: Brief example: Here''s the outline of the files in use: ....app ........controllers ............application_controller.rb ............rushing_offenses_controller.rb ........models ............rushing_offense.rb ....lib ........scraper.rb ........tasks ............scraper.rake The rushing_offense.rb file contains: class RushingOffense < ActiveRecord::Base end The scraper.rb file contains: class Scraper < ActiveRecord::Base # METHOD that...
2009 Jun 25
7
Join Tables
...ingle element in that table, so it uses the singular name. However, I''ve installed both of the following plugins: redhillonrails_core foreign_key_migrations So, as an example, let''s say I created 32 tables with the following type of information: def self.up create_table :rushing_offenses do |t| t.integer :team_id t.string :name t.integer :games t.integer :carries t.integer :net t.float :avg t.integer :tds t.float :ydspg t.timestamps end end And I want to create a join table for the team_id to associate with all those tabl...