similar to: Accessing file_column_helper from withing controller

Displaying 20 results from an estimated 300000 matches similar to: "Accessing file_column_helper from withing controller"

2006 Jan 13
1
Accessing file_column_helper from withing controller
Hi All, i have i niggly little showstopper -> I need to access file_column_helper from within the controller, as I need to include an image in my "pdf-write" code... Any sane way to do this? "Require ''rails_file_column''" still gives me an error: "undefined method `url_for_file_column''..." (I am using *svn* version with Rails 1.0)
2005 Jul 11
0
accessing an alternate controller from text_field_with_auto_complete
Afternoon, I''m attempting to add a "tag" auto complete text field to my Movies ''edit'' view. :controller => ''movies'', :action => ''edit'', id => 39 > I''d like add tags to this movie, and I''d like to draw from existing tags in the database to avoid small typos or something. However, the
2006 Jul 14
3
Accessing the Model class from Controller
Hi, I wonder if there''s an easy way to access the associated Model class from its Controller. Something that would allow me to write snippets like the following: class PeopleController < ApplicationController def some_method person_model_class = self.some_method_to_retrieve_the_person_model_class() end end Cheers, Marco -- Posted via
2006 Nov 04
0
accessing constants in model from controller.
Hello, In my model Example, I''ve defined three types as such: class Example < ActiveRecord::Base TYPE_A = ''A'' TYPE_B = ''B'' TYPE_C = ''C'' def select.... end end How can I access these types in my controller. I''m trying the following with my controller named Read: def init a = Example.TYPE_A end It
2010 Apr 30
5
accessing one controller from another
I have a posts controller and a pages controller for ''static'' pages ie my homepage I want to have the latest post shown on the homepage.... accessing the posts controller from within the pages controller Is there a way I can do this? thanks -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on
2005 Jul 28
4
Running Internet Explorer from Withing R
Good morning, Is it possible to open an html file using IE but from within R? I wrote a small function to generate tables in html but I'd like to write another function to call IE and open the html file. Thanks, Walt Paczkowski ________________________ Walter R. Paczkowski, Ph.D. Data Analytics Corp. 44 Hamilton Lane Plainsboro, NJ 08536 (V) 609-936-8999 (F) 609-936-3733
2006 Mar 16
0
Accessing Helperfunctions from the Controller
Hi there, how can i access a helper from within my controller? :) Since i got a helper that serves my views with certain stuff, but at some point i need this helper in my controller for gathering data. since "helper :ipv4addr" includes me ipv4addr_helper.rb but not its functions.. or at least i don''t know how to acces these functions :) Thanks in advance! -- Posted via
2005 Mar 06
3
Accessing login name from login_generator
I''m new to Rails and am modifying the ToDo tutorial app into something else. I have successfully installed authentication via login_generator and now I working toward restricting access to certain database records based on the login name. I realize that eventually, I''ll want to use the "id" field, but for now, I just want to use the user name itself. I have
2006 Jul 22
4
Accessing the controller name in your views?
I need to know what controller and action the user is currently in to do various things in my layouts/application.rhtml file. Isn''t there is a better way than: <% if params[:controller] == "whatever" && params[:action] == "whatever" %>some html<% end %> I know in the controllers you can just use controller_name, but that is not provided
2007 Feb 21
0
accessing controller methods from backgreoundrb
Hi all, I am trying to use backgroundrb to cache a set of controller actions that are quite processor expensive (there is some pretty heavy xml processing going on). In my rails app I have page caching set up to observe the appropriate controllers and models and all works well. However when model changes occur in a backgroundrb process the cache sweeper isn''t notified of the changes
2006 May 17
0
NOOB 2 - Controller not running when accessing pages
Folks, I am linking from page A to page B, and back again. When I go from A -> B, the B_controller.rb runs fine, and the page renders properly. But, when I go from B -> A, the A_controller.rb doesn''t run again, so the array (@A) is nil (which causes a problem). Should the controller run each time the page is accessed? Any ideas? Marcus Marcus Blankenship Technology Services -
2008 Apr 21
0
Using the 'by' function withing a 'for' loop
Dear R experts, I am trying to optimize my script, because right now it requires a lot of memory. The goal is to generate four plots in one page. Every plot corresponds to the means and sem's calculated for a given variable at different days. In order to obtain the means and sem's I apply the 'by' function. The way I have done it so far is like this: Read the data Generate a
2005 Dec 17
1
file_column url_for_file_column from within controler
Hello, i hope somebody can help me: How can i get the path/url for a file stored with file_column within any contoller? Is it somehow possible to use the url_for_file_column method from the file_column_helper.rb ? Greetings and thanx for any advise, Marc -- Posted via http://www.ruby-forum.com/.
2006 Jul 09
1
Accessing the name of a controller''s module?
If I''m redirecting to a log in page, and saving the controller and action name in the session hash, how do I also save the controller module? After the log in is completed, I can''t redirect back to the originally directed page because it''s in a different controller module. For the controller action name I can use the ActionController instance method controller_name(),
2005 Dec 30
1
metaprogramming in controller: accessing instance variables
Hi all, I''m trying to move a bunch of methods out of a controller into a library that I can include and call a class method to have it dynamically add a bunch of methods to the controller. The goal is to just add to each controller: include UIEnhancements::SubList sub_list ''Note'', ''incomplete'' and have the sub_list method create all the methods
2011 Mar 15
1
"Connection reset by peer" withing a rsyncd strace log
hello, running an rsyncd server I get the following into the error log when trying to sync on a module : (...) Mar 15 15:32:44 xxxxxx rsyncd[5202]: building file list Mar 15 15:34:55 xxxxxxxxx rsyncd[5202]: rsync: writefd_unbuffered failed to write 4092 bytes to socket [sender]: Connection reset by peer (104) Mar 15 15:34:55 xxxxxxxxxx rsyncd[5202]: rsync error: error in rsync protocol data
2006 Apr 21
4
Simple Controller/Routes Question
This is probably a very basic question, but what is the proper controller & routing setup if I''m setting up a RoR site with static pages, like: http://mysite.com/about http://mysite.com/services http://mysite.com/contact I want each of these pages to use a single template file that I can push content to. It seems like overkill to create individual controllers for about,
2006 Jan 25
15
Newbie: Static page without controller
Hello, I''ve been through a few tutorials and have made some simple apps that interact with the database, but I''m having trouble doing something that seems like it would be very simple. Just imagine a static website that doesn''t interact with the database. You have pages like: www.domain.com/home www.domain.com/services www.domain.com/more-stuff Since these are
2009 Dec 19
1
accessing another controller's data
Hello everybody, I''m ruby/ror newbie I''m trying to generate a site map of a website. Website is divided to three parts (each has own controller). In every controller(in init action) is variable @left_menu, which is a hash containing a sub- navigation of current part of the site. The problem is that to generate the site-map i need to access @left_menu in father controller (root)
2006 Sep 27
7
problems with accessing controllers in sub tree directory
Hey guys, I used "script/generate controller admin/event" How do I link to the views and the controller when it''s inside a directory. I tried <%= link_to "some link", :controller=>"event",:action=>"index" %> <%= link_to "some link", :controller=>"admin/event",:action=>"index" %> <%=