similar to: access application helper within controller

Displaying 20 results from an estimated 100000 matches similar to: "access application helper within controller"

2009 Apr 05
1
Testing: Application controller and helper
How do we test application controller and application helper in rails? Thanks in advance.. - Shauma. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2006 Nov 28
2
R() in controllers
Hello all, I have an app mounted under /test via lighttpd fastcgi as indicated on [1]. Here I use R(Foo, bar) in views to link to controller foo, this correctly creates a /test/foo/bar link. However, when I use R() in some controller, for example: headers[''Refresh''] = "60; url=#{R(Foo, bar)}" The generated link is /foo/bar, which obviously links to something
2006 Jul 11
0
better way to include helpers into application controller/test_helper?
Right now, I have the following in my application controller - and a simliar version is duplicated in test_helper. There must be a better way to include common functionality like this that gets used across layers? Maybe at the very least a way to include it at the class level and instance level with one line? # provide access to text helper at class level def self.text_helper
2018 Oct 01
0
getent not showing domain users and groups with winbind but works with sssd
On Sun, 30 Sep 2018 23:25:48 +0200 Peter Milesson via samba <samba at lists.samba.org> wrote: > Hi folks, > > AD server CentOS 7-1804, Samba 4.9.1 compiled from source, only used > as AD server, with netlogon and sysvol, just like any Windows AD > server > > AD member server CentOS 7-1804, Samba 4.7.1 installed from CentOS > repositories, intended for use as a
2006 Mar 10
5
case insensitive search
I am having trouble with a simple gallery search. I type in a segment of the address and i only seem to be getting results if I use the correct case. This is in my Gallery controller: def search @gallery = Gallery.find(:all, :include => :property, :conditions => "address LIKE ''%#{@params[:keywords]}%''") end On a different note: I am having
2012 Jan 13
3
access/row access/col access
Hello, I have a data.frame and I want to transfor it in a list of rows or columns. I can do apply(myDataFrame,MARGIN=1,FUN=???) I remember that there is a function which mean return or access column ... something like "::" or "]," or "[," I can't remember can somebody refresh my memory? -- View this message in context:
2015 Dec 02
0
Authentication to Secondary Domain Controller initially fails when PDC is offline
Rowland, What did you request as DNS? Samba + Bind + DLZ ? If yes, the fact your two DNS are replying "I am SOA" is a feature from Bind9 or from DLZ patch. That's important as a standard Samba AD designed without Bind is using LDAP defined entry for SOA. Asking to the five Samba DC I have here who's SOA, they all replied the same server, the one declared in SOA LDAP entry. Of
2007 Feb 14
1
problems apt-getting from CRAN
Hi there, I hope that's not been asked ad nauseam (but I could not find it in the archives...) but, if I put a CRAN mirror in my sources.list and I try to install the latest R version for 'testing' I get the warning that the packages cannot be autenticated. I tried to figure out how to get a GPG key from the mirror I'm using (the austrian one) in case that's the solution,
2006 Jun 16
3
Not able to recognize helper class method in controller!
Hi, Not able to recognize helper class method in controller! When I try to call some method "get_formatted()" in my controller, it says local method not recognized. Please help me out. Thanks, josua -- Posted via http://www.ruby-forum.com/.
2006 May 02
1
Sharing function between helper and controller
Hi, I have a utility function repeated in both my helper and my controller. Not DRY. I have this repetition because other functions in the helper and in the controller both use the utility function. Where do I put this function so that both the helper and controller can access the function? Mayber there is a different solution? Thanks, Peter
2016 Aug 30
2
L2tp and winbind - server role active directory domain controller
hum... thanks Achim.... I think this is more reasonable to my scenario.... I will try! 2016-08-30 11:48 GMT-03:00 Achim Gottinger via samba <samba at lists.samba.org> : > > > Am 30.08.2016 um 15:05 schrieb Gilberto Nunes via samba: > >> Hello list... >> >> I have samba 4.1.17 installed and in the same server, I have l2tp. >> Samba it configurated as
2006 Feb 02
5
access controller var within model
I need to access params[:field_name] from within my Model. @params[:field_name] isn''t working?
2005 Dec 22
0
use helper methods in controller? (sanitize)
Hi, I want to use the method sanitize() to clean up some user input before I save it to the db. sanitize() is a helper method, so it is only usable in templates, right? So how can I use helper methods in the controller, or why should I not? I could build a template like "<%=sanitize(input)-%>" and use render_to_string, but that seems pretty hackish. Or I could sanitize every
2006 Jul 25
0
Helper in controller?
Hello, I have have written a statictics controller for one of my applications - and I want to allow users to pull out certain statistics from a certain period. In my view, I''ve added something like this: [view] <%= form_tag :action => "bu" %> <select name="bu"> <option value="04">Germany</option> </select><br>
2005 Dec 29
1
Calling helper from a controller
I try to call a helper define inside the *application_helper.rb* but I obtain an error. Is it possible ? There is an other way ? Thanks
2006 Oct 08
3
Call an helper method from a controller
Hello, this have been debated few times in the forum but I didn''t found a satisfying solution : my problem is very simple, I have few methods dealing with cookies that are intended to be used in controllers and views. Let say I have the read_cookie() method. Because it deals with the response object putting this method in the /lib directory doesn''t fit nicely because I
2006 Jul 11
1
Can one controller use another''s Helper Methods?
If I have controller1 and controller2, how would controller1 call method Arf in controller2''s helpers? Thanks, Ben Lisbakken -- Posted via http://www.ruby-forum.com/.
2006 May 18
0
Call controller function from helper
Hi, I wonder how I can call a controller function from a helper? Cheers, Henrik -- Posted via http://www.ruby-forum.com/.
2006 Apr 24
7
Controller can''t find helper?????!!!!!????
I have a controller named xyzController under app/controllers I have a helper class named xyzHelper under app/helpers. Shouldn''t I be able to call methods from xyzHelper inside of xyzController without any problems? Thanks, Wes -- Posted via http://www.ruby-forum.com/.
2005 Dec 19
3
Where to put code - app controller, or app helper?
I have a function i want to be used in both views and controllers: def year_to_fiscal_year(year) # converts, say, an integer 2003 into ''0304'' year.to_s[2,2] << (year+1).to_s[2,2] end Where should i put it ? -- Posted via http://www.ruby-forum.com/.