Displaying 10 results from an estimated 10 matches for "show_pages".
Did you mean:
show_page
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?
2007 Mar 01
0
FastCGI and Apache. Anybody know what can cause this error?
Does anybody know what could possibly be causing my error?
Somehow action_controller got into a state where it was retuning not
found for about 4 out of every 5 requests, seemingly arbitrarily.
Has anybody else ever experienced this? I''ve heard 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
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 never...
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
Hi,
I have attempted to install radiant on my server using mongrel. I have
it working fine using lighttpd on my development box, but as soon as i
attempt to run it using mongrel I get the following error:
NoMethodError (undefined method `find'' for Status:Class):
/app/models/page.rb:49:in `status''
/app/models/page.rb:57:in `published?''
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