search for: anchovies

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

2006 Aug 17
6
Rails and Checkboxes
...e a pizza by setting check boxes. The choose their toppings, click submit and the form does a callback and shows them how much it will cost to have a pizza with those toppings on. At the moment I have the following: View: <%= start_form_tag :action => "pick_your_own" %> Anchovies <%= check_box "pizza", "anchovies" %> <% end_form_tag %> Controller: @total = 0 if @pizza.anchovies? > 0 then @total = @total + 10 end This gives me a NoMethodError with "You have a nil object when ou didn''t expect it. This error occur...
2005 Jul 28
2
lattice/ grid.layout/ multiple graphs per page
Background: OS: Linux Mandrake 10.1 release: R 2.0.0 editor: GNU Emacs 21.3.2 front-end: ESS 5.2.3 --------------------------------- Colleagues I have a set of lattice plots, and want to plot 4 of them on the page. I am having trouble with the layout. grid.newpage() pushViewport(viewport(layout = grid.layout(2,2))) pushviewport(viewport(layout.pos.col = 1, layout.pos.row = 1)) working trellis