search for: schedulescontroller

Displaying 2 results from an estimated 2 matches for "schedulescontroller".

Did you mean: schedulecontroller
2006 Jun 30
3
passing parameters to functions
...to be able to pass in a specified month and year to get the correct schedule calendar to display in the view. I''m just starting with this and am simply trying to display the parameters I''m trying to pass in. Here''s what I''ve got so far: Controller: class SchedulesController < ApplicationController def index show_cal(yr, mo) render :action => ''show_cal'' end #...other functions not listed def show_cal(yr, mo) # set up dates based on yr, and mo end end View: show_cal.rhtml <h2>Calendar</h2> <%= yr %> &...
2006 Aug 04
4
DRY DRY DRY
Hello everyone! Ive been on rails for the last month or so and really enjoyed this framework. However its very hard to find documentation on how to do things right! For example every beginner after a while realizes that having similar CRUD actions in every controller and views for them is not DRY at all! Few days ago I found http://dereksivers.com/rails-shared-controller.html I quite like his