search for: johntopley

Displaying 5 results from an estimated 5 matches for "johntopley".

2006 Jun 03
3
Disable Migration creation in generate Model
Hi.... Is there some way to configure Rails to not create a db/migrate/###_model_name.rb when I do a script/generate model ModelName? It''s a little annoying when I''m setting up a new application since I prefer creating all the first tables in a 001_inital_schema.rb file. Then when I generate models for those tables I get migration scripts for all of them again that I have to
2006 Jun 02
3
Custom Pagination Links
Hi, I''m using the code below to display some pagination links. It works great apart from when there''s no paging i.e. the full collection is displayed, when it still display a "1" to represent the current page. How can I suppress that? Thanks! <div class="pager"> <%= link_to(''&lt; Prev'', {:params =>
2006 Jun 03
1
Multiple Paginators with Independent Paging
Hi, Is it possible to have multiple paginators on one screen with independent paging? I have two paginators but they both track the same page, which isn''t what I want. Thanks, John -- Posted via http://www.ruby-forum.com/.
2006 Jun 25
4
Zebra Striping a Collection of Partials
I''m using render to display a collection of partials, where each partial is a table row. Is it possible to zebra-stripe the table using this method i.e. alternate table rows get a different CSS class? I can''t work out how each row partial would know whether it was odd or even. In the normal scheme of things I could do: <% odd_or_even = 0 for asset in @assets
2006 Jun 26
0
Sparkline Graphs Breaks Generator Help?
I''ve noticed that when using Geoffrey Grosenbach''s Sparkline Graphs Gem, the Rails built-in generator help stops working i.e. I type script/generate and it just returns without outputting anything. Can anyone reproduce this or is it just me? -- Posted via http://www.ruby-forum.com/.