similar to: filter function with parameter

Displaying 20 results from an estimated 120 matches similar to: "filter function with parameter"

2006 Jun 04
5
filter function with parameter
Hi! I want to add a function with a static paramter ("2" in the example) to a filter, but somehow Rails seems to be looking for another syntax. before_filter :check_quantity(2), :only => [:show] doesn''t work. What''s the right way to do this? Thanks a lot! -- Posted via http://www.ruby-forum.com/.
2006 Apr 06
7
LoginSystem : make @session available to models
Hello. LoginSystem is cool, it populates the @session instance variable of controllers with many useful info. The fact is : it would be cool to let models know about the session, too. For instance, after_update and after_create callbacks could store *who* did *what* on *what. Aim : having ActiveRecord::Base::session defined, returning the @session of the controller which manipulates the
2009 Jun 05
6
rails 2.3.2
Hi all, I am using rails v.2.3.2 and if I put following line to my ApplicationController: include LoginSystem and I moved my login_system.rb to lib folder: module LoginSystem protected def is_logged_in? @logged_in_user = User.find(session[:user]) if session[:user] end def logged_in_user return @logged_in_user if is_logged_in? end def logged_in_user=(user) if
2006 Jun 19
0
url_for missing out parameters?
Having a bit of an issue with url_for The current page I''m on has a named route as follows: map.some_page ''page/:id/:range'', :action => ''the_action'' All looks fairly normal. I have an url_for on this page to make a link to another page as so: url_for(:controller=>''other'', :action=>''display'', :id=>5,
2005 Mar 09
10
Confused about extending the login generator ''user''
I''ve been using the login generator ''out of the box'' for simple authentication, and its been working fine. Now I want to extend it by simply adding ''type_id'' field which links to my ''user_types'' table, but I''m hitting: #<ActionController::SessionRestoreError: Session contained objects where the class definition
2006 Jan 09
0
Need help configuring LoginGenerator
I''m new to Rails and I''m trying to get user login working on my app. I''m running Ruby 1.8.2 on OSX 10.4 with Rails 1.0 I''ve installed the most recent LoginGenerator(1.1.0) and followed the instructions in README_LOGIN as well as referencing any additional information at http://wiki.rubyonrails.com/rails/pages/LoginGenerator. The error message I''m
2006 Feb 07
0
scope problems testing a helper method that calls link_to()
We''ve been having problems writing functional tests for helper methods that rely on ActionView methods. Here''s a specific example. In application_helper.rb I''ve got a method called ''party_link()ยจ: def party_link(party) link_to party.full_name, { :controller => ''contacts'', :action =>
2006 May 26
2
Rails app fails to start with LoginGenerator
Hi guys I was following this: <a href="http://wiki.rubyonrails.com/rails/pages/LoginGenerator">tutorial</a> and everything was perfect until I run the script. I''ve got: <strong>MissingSourceFile</strong><br /> no such file to load -- user.rb <br /> RAILS_ROOT: script/../config/.. <br /> <pre><code>
2006 Jan 29
3
SHLG and lib dir
Slowly figuring out how to get my SaltedHashLoginGenerator stuff working. The wiki page says to put "before_filter :login_required" in the user (my "user" is "member") controller or in ApplicationController. However, wherever I put it I get NoMethodError. The rest of the SHLG stuff seems to be working... or at least I could get to the signup page, register, and
2014 Feb 10
1
isohybrid --mac doesn't find the mac efi image
On 02/10/14 07:41, Thomas Schmitt wrote: > Hi, > > email at missionaccomplish.com wrote: >> We been trying to boot the image in vbox using efi emulation but it >> complains about kernel not supporting handover. > If it complains about a kernel then it should be past El Torito > or GPT. The job of xorriso is to point BIOS and EFI to their > boot images. Everything else
2014 Feb 09
1
isohybrid --mac doesn't find the mac efi image
On 02/08/14 17:40, Thomas Schmitt wrote: > -eltorito-id "MAC" \ thanks a lot, that seems to allow isohybrid --mac to work \o/ for the curious this is the image before and after isohybrid as shown by gparted * output from xorriso xorriso 1.3.2 : RockRidge filesystem manipulator, libburnia project. Drive current: -outdev 'stdio:../image.iso' Media current: stdio file,
2015 Oct 28
3
Isohybrid wiki page and UEFI
Hello Thomas, Thomas Schmitt via Syslinux said on Sun, Oct 25, 2015 at 04:35:57PM +0100: >I assume you can boot Fedora Live CD on the same (virtual) hardware. Not sure for Fedora, but the system is installed with either RHEL6, RHEL7 or Ubuntu 14.04 depending on the Lab I'm making on it without issue. >Just to make sure that the firmware works so far. Globally they do ;-) >
2006 Feb 01
1
LoginGenerator - Firefox Problem -The page isn''t redirecting properly
Hi, HAs anyone come across this issue in Firefox; I''ve just installed LoginGenerator and I''m allowing cookies to be set yet any all to http://apollo:3000/account/login results in the error; Firefox has detected that the server is redirecting the request for this address in a way that will never complete. Any Clues?? Eric.
2008 Oct 24
2
Failure to boot isohybrid image from USB stick
Hi, i did not succeed to get my test computer (Asus A7V8X-X of 2004) to boot from an isohybrid image. I tried http://www.tux.org/pub/people/kent-robotti/looplinux/rip/RIPLinux-7.0-non-X.iso which is obviously isohybrid enabled. The system has a "Promise Ultra 133 TX2" IDE controller which supercedes the mainboard BIOS. To make the system react on the USB stick i set boot option
2014 Jul 30
2
isohybrid: slint64-14.1.iso: unable to find mac efi image
Hi, On 29/07/2014 23:19, Thomas Schmitt wrote: > A good opportunity to brag with xorriso's boot inspection > features (since xorriso-1.3.8): Yes! I've upgraded libburn, libisofs and libisoburn so now I can play with it too ;) > I forgot to advise (or misadvise) -isohybrid-apm-hfsplus with > the image /isolinux/efiboot.img . So we only got one APM > partition here. A
2014 Nov 10
1
Boot fails in a VMware player VM - syslinux 6.03
On 10/11/2014 10:46, Thomas Schmitt wrote: > Hi, > > i downloaded > http://slint.fr/misc/testing/slint64-14.1_syslinux.6.03.iso > > Inspection by xorriso-1.3.8: > > xorriso -indev slint64-14.1_syslinux.6.03.iso \ > -report_el_torito plain \ > -report_system_area plain > > yields > > El Torito catalog : 46 1 >
2005 Jul 04
0
[Bug 2847] New: Group not preserved with rsync 2.6.3 on Cygwin in daemon mode
https://bugzilla.samba.org/show_bug.cgi?id=2847 Summary: Group not preserved with rsync 2.6.3 on Cygwin in daemon mode Product: rsync Version: 2.6.5 Platform: x86 OS/Version: Windows XP Status: NEW Severity: normal Priority: P3 Component: core AssignedTo: wayned@samba.org
2008 Nov 05
3
Problems w/ before_filter getting ignored
Hello, I''m setting up an authentication module that will be called from application.rb. I want to save a rrequest.request_uri into a session to be used as a place holder that will take users back to the page they were on before they logged in. I''m trying to call the store_location method for all methods EXCEPT login by putting login in an except before filter. For some
2005 Mar 28
0
Handling return from modal pages on rails
Hi List, I didn''t like the way store_location worked in rails. It doesn''t know you''ve pushed the "back" button, and it always returns to the top of a page. On a large page, the part you were looking at would no longer be on the screen. People try to deal with this using an AJAX hack, but it seems to me that the proper way to fix it is to store the return
2008 Jan 24
0
Windows server 2003 can't join SAMBA domain - solved
Hi all, I sent post few days ago with question: why I can't add win2k3 to samba domain? NO answer ;) But today we were able to add it. This is strange but pure 2k3 throws message "The specified user already exist". This is not the first time I saw this message so thought that maybe this has something to do with machine account. But account in LDAP for this server was the same like