search for: show_pag

Displaying 10 results from an estimated 10 matches for "show_pag".

Did you mean: show_pad
2006 Feb 01
8
ruby equivalent of isset()
Hi, Is there a way to test if a certain (local) variable has been initialized? I''d like to do something like if isset(myvar) and myvar.true? #some code else #default behaviour end I have a lot of shared views that I call with params such as { show_pager => true Instead of having to explicitly say show_pager => false it should be possible to make false a default value, right? Jeroen
2007 Mar 01
0
FastCGI and Apache. Anybody know what can cause this error?
...eard that apache and fastcgi is not the best solution, do you think this is fcgi''s fault? Could it be a bug in my ruby code? Could it be a bug in my version of rails? Restarting my site via: touch dispatch.fcgi seemed to do the trick Here''s the error: Processing SiteController#show_page (for 74.94.128.241 at 2007-03-01 13:58:26) [POST] Parameters: {"action"=>"show_page", "url"=>["portfolio", "design", "print", "fibonaccis-spirals-in-nature"], "controller"=>"site"} ActionControll...
2006 Feb 05
2
request.request_uri in production environment?
Hi, What''s the problem with this line? <%= ''height="750" valign="top"'' if request.request_uri =~ /survey_result/i %> No problem with development environment but when uploading to server I get application error. And is there a better way to do this? Thanks
2007 Jul 22
4
single table inheritance problem
...STI in my application. setup: - two tables one called "wikis" on called "categories" with a hbtm relationship. - the wikis table is the sti one with a model PageWiki being extended from Wiki (and the correspondig type column) Following happens: - server restart - get :wikis, :show_pages - in show_pages the first line says PageWiki.find(:all) ! Now I get the following error LoadError in WikisController#list_pages app/models/page_wiki.rb to define PageWiki // (it is of course defined there ) If i call the page again everythings works as it should be and the the error message nev...
2006 May 19
2
Help with using method_missing to create template path
I have a site (for an academic conference) that I want to convert to RoR - both as a learning exercise and to ease further updates and development. There are a number of child pages for each conference (past and future), but these pages are different for each conference (not same child pages for each conference). The URLs are along the lines of: /conference/2000/keynotes
2010 Dec 31
6
HTTP Accept header wildcard breaks rails app
The thunderstone crawler (http://search.thunderstone.com/texis/ websearch/about.html) sends the folliowing HTTP accept header when requesting pages Accept: text/*, application/javascript, application/x-javascript This results in a "Missing template" exception text/* is valid. How do I tell my rails app to treat this as rhtml by default instead of returning a 500? Missing template
2006 Feb 15
9
newbie-> help understanding "magic" behavior
I am trying out ROR for the first time[1], and have much PHP poisoning to overcome in my mental baggage. That said, I was delighted to find that I could make a link from a "show" page to the next record in the database by simply adding @next_page = Content.find(params["id"].next) to my content_controller.rb and then constructing a link to it within my show.rhtml. The
2007 Feb 08
1
undefined method `find' for Status:Class
.../lib/advanced_delegation.rb:10:in `find_by_url'' /app/models/page.rb:72:in `find_by_url'' /app/controllers/site_controller.rb:29:in `find_page'' /app/controllers/site_controller.rb:34:in `show_uncached_page'' /app/controllers/site_controller.rb:22:in `show_page'' /vendor/rails/actionpack/lib/action_controller/base.rb:941:in `send'' /vendor/rails/actionpack/lib/action_controller/base.rb:941:in `perform_action_without_filters'' /vendor/rails/actionpack/lib/action_controller/filters.rb:368:in `perform_action_without_bench...
2006 Apr 10
9
Pagination with letter (A B C D ... Z)
Hi there, Is there a neat and easy way to implement pagination with letters rather than numbers eg : A B C D ... Z Rob
2006 Mar 08
8
New ajaxy CMS on Rails: adminpages
hey, i''ve created a basic content management system using rails and scriptaculous. I posted a first version last week, but I heavily extended it since then. Features: Pages are arranged in a sortable tree (sortable by drag and drop) Pages have "nice" URLS (no /index?articleid=97361496 or something) Cacheing on page basis every page has a layout with a number of columns page