search for: pagenam

Displaying 20 results from an estimated 23 matches for "pagenam".

Did you mean: pagename
2006 Jan 24
1
Query String in routes.
Is there any way to access the query string full request uri in routes.rb? I''d like to route requests for those going after my old application urls to my new rails application urls. The old app used /wiki.cgi?PageName The rails app uses /wiki/show/PageName Like... map.connect ''wiki.cgi'', :controller => "wiki", :action => "show", :id => ENV[''QUERY_STRING''] ENV doesn''t contain any CGI bits at all at the point routes.rb is called. env...
2007 May 12
3
Setting form-values
Hi, I''ve recently had some trouble setting form values in my code - for example: require ''rubygems'' require ''mechanize'' def save(pagename, content, editsummary = '''') agent = WWW::Mechanize.new agent.user_agent = ''Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)'' page = agent.get(''http://en.wikipedia.org/w/index.php?title='' + pagename + ''&action=edit'...
2015 Aug 22
2
Russian wiki
...le "/usr/lib/python2.6/site-packages/MoinMoin/request.py", line 1207, in > run > handler(self.page.page_name, self) > File > "/var/www/html/wiki.centos.org/wiki_instance/data/plugin/action/show.py", > line 27, in execute > if not request.user.may.read(pagename): > File "/usr/lib/python2.6/site-packages/MoinMoin/security.py", line 111, in > _getPermission > allowed = self.request.cfg.acl_before.may(self.request, self.user.name, > self._right) > File "/usr/lib/python2.6/site-packages/MoinMoin/wikiacl.py", line 17...
2006 Aug 14
4
Controller method problem
...to then find all the contents that belong to that page in the same method. Controller def aboutus @page = Page.find_by_name(params[''About Us'']) @contents = Content.find(:all, :conditions => "page_id = #{@page.id}") end Page Model def self.find_by_name(pagename) find(:first, :conditions => "name = ''#{pagename}''") end I keep getting an error message "Called id for nil". Can anyone let me know what i''m doing wrong here. -- Posted via http://www.ruby-forum.com/.
2015 Aug 22
2
Russian wiki
I am not sure, but ru section fails to load now. Last changes was translating SIG section. Please, help to fix this issue. 2015-08-22 21:24 GMT+06:00 Ilyas Arinov <arinov.ilyas at gmail.com>: > Thanks. Now I can do it by myself. > > 2015-08-22 19:43 GMT+06:00 Alan Bartlett <ajb at elrepo.org>: > >> On 22 August 2015 at 14:37, Akemi Yagi <amyagi at gmail.com>
2015 Aug 22
0
Russian wiki
.../MoinMoin/request.py", line > 1207, in > > run > > handler(self.page.page_name, self) > > File > > "/var/www/html/wiki.centos.org/wiki_instance/data/plugin/action/show.py > ", > > line 27, in execute > > if not request.user.may.read(pagename): > > File "/usr/lib/python2.6/site-packages/MoinMoin/security.py", line > 111, in > > _getPermission > > allowed = self.request.cfg.acl_before.may(self.request, > self.user.name, > > self._right) > > File "/usr/lib/python2.6/site-packages...
2012 Aug 22
3
Libvirt Seg Fault when compiling either 0.9.13 or 0.10.0-rc1
...qemu-kvm-1.1 but I cannot seem to get Libvirt to compile. During the make portion of the install I get the following error: ... make[4]: Entering directory `/home/shawn/libvirt-0.10.0/docs' Generating 404.html.tmp /bin/bash: line 5: 59204 Segmentation fault /usr/bin/xsltproc --stringparam pagename $name --nonet --html ../docs/site.xsl 404.html.in > 404.html.tmp make[4]: *** [404.html.tmp] Error 1 make[4]: Leaving directory `/home/shawn/libvirt-0.10.0/docs' ... I have tried using "./configure --without-xen" and "./autogen --without-xen" for the configure step and...
2015 Aug 22
0
Russian wiki
...(most recent call last): File "/usr/lib/python2.6/site-packages/MoinMoin/request.py", line 1207, in run handler(self.page.page_name, self) File "/var/www/html/wiki.centos.org/wiki_instance/data/plugin/action/show.py", line 27, in execute if not request.user.may.read(pagename): File "/usr/lib/python2.6/site-packages/MoinMoin/security.py", line 111, in _getPermission allowed = self.request.cfg.acl_before.may(self.request, self.user.name, self._right) File "/usr/lib/python2.6/site-packages/MoinMoin/wikiacl.py", line 178, in may is_group_me...
2006 Feb 28
1
Can I let routes.rb take precedence over file names?
I''d like Rails to intercept the url''s of html pages in a certain directory so I can embed them in my site. I put them in public/pages and tried to catch them with a route like map.connect ''pages/:pagename'' However this only works if the file does not exist; e.g. "pages/test.html" will only be routed if that file doesn''t exist, otherwise it will just show the file. Is there any other way I can reroute url''s of existing html files? The reason I need to use th...
2015 Aug 23
2
Russian wiki
...>> 1207, in >> > run >> > handler(self.page.page_name, self) >> > File >> > "/var/www/html/wiki.centos.org/wiki_instance/data/plugin/action/show.py >> ", >> > line 27, in execute >> > if not request.user.may.read(pagename): >> > File "/usr/lib/python2.6/site-packages/MoinMoin/security.py", line >> 111, in >> > _getPermission >> > allowed = self.request.cfg.acl_before.may(self.request, >> self.user.name, >> > self._right) >> > File "/usr...
2004 Oct 10
1
using recent theora under Linux
...ora as it runs several processes, but also a bit more universal) The program names with a .reference suffix relate to the versions without any mmx-related patches applied. You will need a Coda client which is available at http://www.konvalo.org/pub/coda-client-setup (see http://www.konvalo.org/?pagename=Main.Software) and then either run "/coda/konvalo.org/start" to get a shell session with these programs in the PATH or "/coda/konvalo.org/start mplayer [args]" and so on. The first start will be slow as it fetches a lot of libraries, but only the first time. This works on...
2004 Oct 10
1
using recent theora under Linux
...ora as it runs several processes, but also a bit more universal) The program names with a .reference suffix relate to the versions without any mmx-related patches applied. You will need a Coda client which is available at http://www.konvalo.org/pub/coda-client-setup (see http://www.konvalo.org/?pagename=Main.Software) and then either run "/coda/konvalo.org/start" to get a shell session with these programs in the PATH or "/coda/konvalo.org/start mplayer [args]" and so on. The first start will be slow as it fetches a lot of libraries, but only the first time. This works on...
2006 Mar 27
1
rio instabilities
...lders full of content. The rough process of what happens when you run the "Generate" method on a "Site" object is: it copies a template directory to a directory named (site.directory) for each line in site.pages it copies (site.directory)/template_page.html to (site.directory)/(pagename).html it then does a great big contents.gsub through each file in the directory, replacing some meta-template tags with content. Now, it creates the files fine, and copies them all fine... but often throws errors saying "you can''t gsub here" and the reason you can''t is...
2005 Mar 30
3
ffmpeg2theora with mmx patches is available on konvalo.org
...x), FreeBSD (5.x) and NetBSD (2.x) on Intel x86. ffmpeg2theora may be considered the recommended Theora encoder. The author of the program is Jan Gerber @ v2v.cc Those of you who already use Konvalo.org do not need to do anything, the program is in your PATH. Otherwise see http://www.konvalo.org/?pagename=Main.Software ------------------------------------------------------------- On Wed, Mar 30, 2005 at 10:46:04AM +0200, Ivan Popov wrote: > In contrast, ffmpeg2theora converts the image to square pixels before > encoding to theora. That is a more straightforward approach, The above is no lon...
2005 Mar 30
3
ffmpeg2theora with mmx patches is available on konvalo.org
...x), FreeBSD (5.x) and NetBSD (2.x) on Intel x86. ffmpeg2theora may be considered the recommended Theora encoder. The author of the program is Jan Gerber @ v2v.cc Those of you who already use Konvalo.org do not need to do anything, the program is in your PATH. Otherwise see http://www.konvalo.org/?pagename=Main.Software ------------------------------------------------------------- On Wed, Mar 30, 2005 at 10:46:04AM +0200, Ivan Popov wrote: > In contrast, ffmpeg2theora converts the image to square pixels before > encoding to theora. That is a more straightforward approach, The above is no lon...
2005 Dec 15
4
Database best practices?
I started with rails a few weeks ago and I''ve been very impressed with the whole framework. My first project after the cookbook was a small application connecting to Postgres. This was originally a port of an Access application so I was delighted with the new facilities for constraint checks, triggers, etc. As I started to write the front-end though I noticed myself rewriting the
2008 Feb 21
1
Using Really Simple History on Rails
...e got this history content up etc, but I am a bit lost on how to capture the XHR response data from the Rails app to insert into the history. My understanding would be to have some way of grabbing the response data from the Rails app, inserting that into the history with dhtmlHistory.add(''PageName'', xhr_response_data) and then eval that data when my listener gets called with the back and forward buttons. I can make this work manually by doing something like this: var pageListener = function(newLocation, historyData) { eval(historyData); } and then: dhtmlHistory.add(''...
2007 Mar 15
1
wiki -> txt
I've been trying to fix MoinMoin's text_plain formatter to produce readable output. It's almost correct, except I don't understand why I can't get the LF-adding rules correct. Either there are too many LFs or too few. And whenever I change something, something else breaks.. It's getting pretty annoying. So if anyone else wants to try getting it fixed that'd be great.
2008 May 23
2
Speex realtime encoding/decoding "Real world" usage for Windows Mobile / Symbian device
Fabio Pietrosanti (naif) wrote: > i am not criticizing the technology itself, but the fact that from the > point of view of the implementator that need to make a technological > choice while selecting a codec to be used for a mobile multimedia > application, speex does not provide affordable informations on > "supported platform".
2008 Jan 29
8
Sending file from mobile phone to Rails app
Hi guys, So I''m trying to add the ability to send files (pictures) from mobile phones to my Rails app using an SMS number, NOT an email address. Can anyone share how this is done? Thanks, Adeel -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: