similar to: sharing a partial across multiple controller views.

Displaying 20 results from an estimated 11000 matches similar to: "sharing a partial across multiple controller views."

2007 Mar 16
1
sort_link_helper and cross-controller partials
Hello Rubyists, I ran into a problem with sorting a table (rendered in a partial) using the sort_link_helper methods after I have submitted data and re-rendered the table through an AJAX request. The setup is a follows: The table is a shared partial of Controller1 and Controller2 accessible via "shared/table". The AJAX''ed sorting using the sort helper works all fine on
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/.
2000 Feb 28
1
Failed RPC Call
I am totally at a loss. I use domain authentication off an NT Server 4.0 computer with service pack 5. I use Samba 2.0.6 running Mandrake 7.0 on my fileserver. I've tried both the "stock" version of samba that came with Mandrake and also a fresh build from the tarball off samba.org's mirror site. Here is the problem: I have a series of services established, all of which
2008 Mar 09
1
Two sample t-test
Hi, I want to perform t-test in R for each individual car. Here is what i have. Is there a way i can test each car? The original table (test.csv) Car Tester2 Tester2 Controller1 Controller2 Audi 0.56 0.9 0.5 0.9 Toyota 0.2 0.9 0.9 0.2 Honda 0.5 0.9 0.1 0.5 BMW 0.2 0.3 0.5 0.7 > cars<-read.table("c://test.csv",header=T,sep=",", + skip=2,comment.char="")
2006 May 30
0
2 quick question about SaltedLoginGenerator
Hi all, I''m using the Salted Login Generator. It''s fantastic. And I have tow quick questions, wish you could give me a hint. 1. I have a few controllers, which all got "index" action. And how can I make login system pass Controller1::index, but restrict access to Controller2::index 2. When the user click the link to verify himself, I want to fill some my customised
2010 Apr 26
2
woriking under webrick but not under passenger
Hi! I have just added login feature to my rails application (followed the instruction from (Agile Web Development with Rails) but now I am getting strange errors (looks to me like some kind of routing problem) under the passenger/apache. The error is: 500 Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. From the log:
2006 May 16
4
question about strftime when called from partial.
Hi, I''m calling a helper I''ve written - format_time() that is called from my views with a given time that was selected from my database and was returned to the view via an instance variable. When I call format_time from a partial, I see that I get some kind of String error and the partial won''t render. Basically, the object being passed in to format_time is already a
2006 May 30
1
sharing partials across controllers.
Hi, I was wondering if it is possible to share a partial across views in different controllers? If so, how would I go about doing this? Would I pass in a parameter to render(...) of the partial telling it where it is located? And help would be appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2020 Jul 03
0
[RFC PATCH 00/22] Enhance VHOST to enable SoC-to-SoC communication
On 2020/7/2 ??9:35, Kishon Vijay Abraham I wrote: > Hi Jason, > > On 7/2/2020 3:40 PM, Jason Wang wrote: >> On 2020/7/2 ??5:51, Michael S. Tsirkin wrote: >>> On Thu, Jul 02, 2020 at 01:51:21PM +0530, Kishon Vijay Abraham I wrote: >>>> This series enhances Linux Vhost support to enable SoC-to-SoC >>>> communication over MMIO. This series enables rpmsg
2006 Mar 14
1
Controller detection order
Hi, I have a dell poweredge 850 with centos 4, freshly installed. I'm now trying to add in a fibre -> sata raid enclosure with LSI HBA's in the 850. My problem is the enclosure gets detected first, hijacking sda and sdb from the internal SATA drive and causing kernel panic at boot time. I've tried changing the order in modprobe to the following: alias eth0 tg3 alias eth1
2020 Jul 07
0
[RFC PATCH 00/22] Enhance VHOST to enable SoC-to-SoC communication
On 2020/7/6 ??5:32, Kishon Vijay Abraham I wrote: > Hi Jason, > > On 7/3/2020 12:46 PM, Jason Wang wrote: >> On 2020/7/2 ??9:35, Kishon Vijay Abraham I wrote: >>> Hi Jason, >>> >>> On 7/2/2020 3:40 PM, Jason Wang wrote: >>>> On 2020/7/2 ??5:51, Michael S. Tsirkin wrote: >>>>> On Thu, Jul 02, 2020 at 01:51:21PM +0530, Kishon Vijay
2010 Oct 14
7
undefined method?
I''m trying to learn rails as I go along, and having a bit of trouble. There is an undefined method cropping that I don''t know why rails thinks should be there. Firstly, I''m using rails 3, ruby 1.9.2 I have a controller with an index action This part works fine, but i am trying to add a comment form to the page that is rendered by that index action. Supposing my
2006 May 01
4
When to make a new controller
Hey all, Ok this is probably a newb question, but I haven''t been programming with MVC for very long, and I''ve been wondering what the general opinion is, or best practices, for making a new controller. Like what cases would you need a new controller for and what cases can you just put everything into one controller? Thanks in advance, Randal -- Posted via
2004 Dec 13
4
Dispatcher? how to use long urls with slashes to call a controller
Hello rails, I have a controller called file with a method get that returns me a file from the db. want to do the following: When calling http://localhost:8080/file/get/11/hansi.txt i want that rails does the same as if i would call http://localhost:8080/file/get/11 This i not the case. I get a 404. This is useful as this makes the filename in the browser downloading the
2006 May 23
4
''key not found'' problem with saving model object.
Hello, I have the following structure: model foo has_many :bars:, :dependent => true end model bar belongs_to :foo end In my action, when i try to save foo: def save begin f = foo.new f.a = 5 begin b = bar.new b.a = 10 f.bars << b rescue Exception => exc ... end f.save! <-- This does not happen
2006 Jul 28
2
passing a variable from controller to model
Hi, How do I pass a variable from my action into a model before saving the model. I''d like the model instance to have access to this variable to do some work before saving the model instance but the variable is not part of the model itself. Thanks, Sam -- Posted via http://www.ruby-forum.com/.
2020 Jul 08
0
[RFC PATCH 00/22] Enhance VHOST to enable SoC-to-SoC communication
On 2020/7/7 ??10:45, Kishon Vijay Abraham I wrote: > Hi Jason, > > On 7/7/2020 3:17 PM, Jason Wang wrote: >> On 2020/7/6 ??5:32, Kishon Vijay Abraham I wrote: >>> Hi Jason, >>> >>> On 7/3/2020 12:46 PM, Jason Wang wrote: >>>> On 2020/7/2 ??9:35, Kishon Vijay Abraham I wrote: >>>>> Hi Jason, >>>>>
2007 Dec 17
2
Many domain - one rails application
If I have many domains and one rails application, how can I redirect to conrollers by domain? Ex. "domain.com" go to controller "/com", "domain.net" go to controller "/net" and "other.org" go to "/other" -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you
2006 Apr 04
2
Sharing controller code between views - best practices?
Hi, I have controller code that needs to be shared between multiple different user type views and want to know what is considered ''best practice'' or what other people are doing out there. Example: I have admin users, salesperson users, and possibly another type of user. They all need code to add/edit/delete a property - and other abilities. The code would be identical(in
2020 Sep 01
0
[RFC PATCH 00/22] Enhance VHOST to enable SoC-to-SoC communication
On 2020/9/1 ??1:24, Kishon Vijay Abraham I wrote: > Hi, > > On 28/08/20 4:04 pm, Cornelia Huck wrote: >> On Thu, 9 Jul 2020 14:26:53 +0800 >> Jason Wang <jasowang at redhat.com> wrote: >> >> [Let me note right at the beginning that I first noted this while >> listening to Kishon's talk at LPC on Wednesday. I might be very >> confused about the