similar to: Controller method problem

Displaying 20 results from an estimated 1000 matches similar to: "Controller method problem"

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 =>
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 =
2006 Aug 14
1
Overide the default find_all
Hi, In my model i want to overide the default find all for sorting purposes. Is this possible or can this only be done in the control or by adding a custom method in the model. def self.find_all() @contents = Content.find(:all, :order => ''pos, position_id'') end -- Posted via http://www.ruby-forum.com/.
2015 Aug 22
2
Russian wiki
On 22 August 2015 at 19:20, Ilyas Arinov <arinov.ilyas at gmail.com> wrote: > I have to update pages twice now to see its content. > > --> --> > > Traceback (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 >
2012 Aug 22
3
Libvirt Seg Fault when compiling either 0.9.13 or 0.10.0-rc1
Hi all, I am trying to install a version of Libvirt that will be compatible with 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
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,
2004 Oct 10
1
using recent theora under Linux
Hello, in case somebody wants to test Theora without compilation, feel free to use konvalo.org's setup. It includes mplayer with theora from svn 2004-09-21 with Wim Taymans' mmx-patches from August 2004 applied (there are mplayer and mplayer.theora-mmx, the latter with decoder mmx-patches from VP3HoSwiYO) and a theora-encoder script (a bit slower than ffmpeg2theora as it runs several
2004 Oct 10
1
using recent theora under Linux
Hello, in case somebody wants to test Theora without compilation, feel free to use konvalo.org's setup. It includes mplayer with theora from svn 2004-09-21 with Wim Taymans' mmx-patches from August 2004 applied (there are mplayer and mplayer.theora-mmx, the latter with decoder mmx-patches from VP3HoSwiYO) and a theora-encoder script (a bit slower than ffmpeg2theora as it runs several
2006 Mar 27
1
rio instabilities
I''m having some serious problems with rio (rio.rubyforge.org) within my Rails app and I was wondering if you lot could offer any advice. So: I''m writing an app that generates folders 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)
2006 Jul 02
5
Pretty URLs -> Routes
Hi I am having issues with getting my pretty urls to work. routes.rb: map.connect '':user'' , :controller => ''front'' , :action => ''list'' , :filter => ''user'' front_controller.rb: def list @advert_pages, @adverts = paginate :adverts, :per_page => 10 @user =
2005 Mar 30
3
ffmpeg2theora with mmx patches is available on konvalo.org
Hello, ffmpeg2theora (with encoder mmx patches) is available on konvalo.org. You can run it on Linux (2.6.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
2005 Mar 30
3
ffmpeg2theora with mmx patches is available on konvalo.org
Hello, ffmpeg2theora (with encoder mmx patches) is available on konvalo.org. You can run it on Linux (2.6.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
2008 May 08
6
[Bug 15864] New: when linked to gst-ffmpeg crash ff3 when full screen play
http://bugs.freedesktop.org/show_bug.cgi?id=15864 Summary: when linked to gst-ffmpeg crash ff3 when full screen play Product: swfdec Version: 0.7.x Platform: x86-64 (AMD64) OS/Version: Linux (All) Status: NEW Severity: normal Priority: medium Component: plugin AssignedTo: swfdec
2007 Mar 06
10
Windows rspec "gem install win32console"
Hi, Hi I am trying to use RSPEC on windows and i keep getting the following error "You must gem install win32console to use colour on Windows" I have installed this Gem but i am still getting the same error. The file that error is coming from is: C:\ruby\lib\ruby\gems\1.8\gems\rspec-0.8.2\lib\spec\runner\formatter\base_text_formatter.rb Do i need to put this line of code in? Where
2009 Jan 02
2
Where to find old R packages?
What happens to old R packages? Is there a place where they are stored like an archive? I'm looking for a package called ScanoR that doesn't exist anymore on CRAN, the author doesn't exist anymore... I had made copies of all packages (fearing that some might be "taken off the air" but unfortuantely the ScanoR package was removed before I started making copies in 2007). Any
2006 Mar 12
3
Newbie: using find like a sql join query
I have a working Rails app with several related tables, but can''t find an answer to this question in the Dave Thomas Rails book. Imagine for example: table departments with columns: id, department_name table employees with columns: id, department_id, employee_name and of course the employees table has a constraint foreign key (department_id) references departments(id) So this is
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>
2006 Apr 15
8
Instant Rails on Win XP SP2
I am trying to run instant rails on windows xp SP2. I can get the cookbook and typo sample sites to work with webrick but not with scgi. When i click the start with scgi i get a blank dos window and typing www.mycookbook.com returns Firefox can''t establish a connection to the server at www.mycookbook.com. This suggests that apache is not even running even though the green light is
2007 Mar 01
4
RC1, Rails, and problems with multiple options in spec.opts
I am having inconsistent output with multiple options in the spec.opts file. I can, for instance, pass --color or --colour, or, separately, use --drb. But when combining them I get: /opt/local/lib/ruby/1.8/optparse.rb:1381:in `complete'': invalid option: --options --color --drb (OptionParser::InvalidOption) from /opt/local/lib/ruby/1.8/optparse.rb:1379:in `catch''
2008 Jan 11
3
Date range queries return zero results
Hello, I am having trouble getting data ranges to work correctly. I am using the following command to load the db: index << {:title => row[7].to_i, :date => Date.strptime(row[3], ''%Y-%m-%d''), :page_id => row[5].to_i, :page => row[6].to_i, :content_type => row[1].to_i,