search for: the_control

Displaying 4 results from an estimated 4 matches for "the_control".

Did you mean: td_control
2005 Dec 18
0
Fromcontroller to the url_for() representation
...s. One of the things I need to pass is the :controller part. So I''m in the controller itself, and I want to change the self.class (or it''s to_s represantation) to the format needed by link_to(). For example: class MyController < ApplicationController def show_something the_controller = self.class # or self.class.to_s # here I want somethig like: @controller_to_use = transform_to_string(the_controller) end end Also, is there a way to call link_to() in a controller? Thanks, Guy.
2009 Jun 23
0
render_to_string inside method shared across several controllers
...t generates the reports and that calls render_to_string is in a helper. The render_to_string uses both a layout and a view template. My problem: there is (as far as I can se) no way to specificy where the view template is stored. Instead, render_to_string assumes that it is stored in app/views/<the_controller>, where <the_controller> is the controller accessed. But I need this to work for several controllers! The only solution I have found is to store copies of the view template in all the app/views/<controller> directories. Highly inelegant, and will lead to maintenance nightmares. An...
2008 Jun 12
11
auto_complete with multiple params
I''m using the auto_complete plugin, and it works great, my problem is i need to pass multiple parameters to the controller other that what is typed in the text field. <%= text_field_with_auto_complete :search, :contains, :size => 15, :frequency => 0.1, :skip_style => true -%> This is what i have as of now, but i also need to pass ":language => @default"
2013 Oct 10
12
What's the best way to approach reading and parse large XLSX files?
Hello, I''m developing an app that basically, receives a 10MB or less XLSX files with +30000 rows or so, and another XLSX file with about 200rows, I have to read one row of the smallest file, look it up on the largest file and write data from both files to a new one. I just did a test reading a few rows from the largest file using ROO (Spreadsheet doesn''t support XSLX and