similar to: Reuse Partials

Displaying 20 results from an estimated 9000 matches similar to: "Reuse Partials"

2006 Sep 10
11
Using partials with Markaby
I''m trying to use a partial from within Markaby. I haven''t been able to figure out how to access a parameter passed into the partial. Here''s the code I''m using: h1 "Create a new note" if @note render :partial => ''form/errors'', :record => @note end ... (that snippet, as well as the partial is stolen shamelessly from Restolog
2005 Apr 20
3
Througput problems behind firewall
Hi I have a atrange problem and don''t know where to look anymore. I have 4 interfaces running on RHE3 on a Dell XEON server 2.8Ghz 1Gb RAM. The primary use (only one at this stage) is for the server to handle mac address authentication of clients which it does. The problem however has to do with througput. I have 3 DMZ''s which one is a private range doing masquarading and
2004 Nov 11
12
Performance degrade going through firewall
Hi I am using verion 2.0.10 of Shorewall. My configuration is as follows: Eth1 dmz1 ------------| __________ | | | Eth2 dmz2 | FIREWALL |------| INTERNET | ----------| | _______ | |__________| | |---------| |
2006 Jan 24
3
Linksys SPA-941 multiple line appearences
Has anyone had any experience with the Linksys SPA-941 when it comes to multiple line appearences? The 941 comes with 4 line appearence buttons which can individualy be configured to point at any extension. The phone is capable of 2 extensions out of the box with the option to add 2 more for a license fee. The 941 manual states that, "The Call Waiting function is activated when a
2002 Apr 21
1
isolinux boooting update
An update to the problem I reported earlier - A kind list reader, Michael K Ter Louw, suggested I try syslinux v1.67, and viola!, my problem went away completely. So something between 1.67 and 1.71 got broke with respect to isolinux. Hmm... Another kind list reader, Seth Kurtzberg, was kind enough to make and effort to send an updated initrd; although it didn't solve the problem, it was
2006 Jun 07
6
Links on the left hand side - are components necessary?
Hello, Maybe this is super-trivial... I need to have a list of links on the left hand side of my application, for *every* single page. So, I''ve created a layout called "main" (main.rhtml) under view/layouts, and included >layout "main"< in pretty all of my controllers. main.rhtml has, amongst all the other HTML stuff: <%= render_component
2006 Jan 31
11
ez_where plugin updated features.
Friends- I wanted to let people know that there is a new experimental release of this plugin. I would love feedback on syntax and features. There is now a full test suite with fixtures that covers all the available syntax. Look at the test suite for more syntax possibilities. There have been many additions since my last release. Fabien Atelier has been working on this with me and has
2006 Nov 28
2
Twice the same code, but only once it seems to work
Hello, I am confronted with a very strange problem which I can not solve... and God I tried a lot, lost almost a whole day, but couldn''t find an answer: The idea is to have a form both in admin and in dir, in admin there will be some more fields that is why I have twice a form. In admin the form appears, in dir the form does not appear instead "þÿ New company" why is it that the
2006 Apr 07
6
Multiple view types for a single action?
Is it possible to have more than one kind of view for a specific action, for example an .rhtml and a .rjs file to handle the view for the same action? I suspect not, but this makes me wonder if there a way to call the .rjs file from within the .rhtml so the statements within it get executed? Thanks, Andy
2005 Aug 10
5
validates_format_of on an optional field using :if
Hi there, I''ve got the following in my model: validates_format_of :postcode, :with => /^([a-zA-Z]{1,2}[0-9]{1,2} [0-9]{1}[a-zA-Z]{2})$/, :message => "is not valid", :if => :postcode ... but it''s not working - it always insists on validation, even if postcode is empty. Basically, the postcode field is optional, but if it''s filled in, I want to
2006 May 18
3
Google Map
Used a great howto @ http://iamrice.org/articles/2005/12/09/using-google-maps-in-the-uk-with-rails for using google maps on uk sites. Just having one issue I can''t seem to work out how to draw the postcode from my table I keep getting hit by method errors. The controller is require ''postcode_2_latlong'' postcode = Postcode.new("TN22 2LG") # I want this to
2006 Feb 28
1
Wrong id after join!
The Problem ----------- After using a join in my find the id attributes set in my Entity objects are wrong! It is setting the Entity id to the value from Postcode id! The Code -------- entities = Entity.find(:all, :conditions => [...omited...], :joins => "as e inner join postcodes as pc on substring_index(e.postcode,'' '', 1) =
2006 Jul 26
4
can you pass data when you render :action
how can i do: render :action => "headline", :id => @user.id Thanks, Ben Lisbakken -- Posted via http://www.ruby-forum.com/.
2006 May 03
10
get Addresses and house numbers from Post Code?
Hi, does anyone know a way to get the address and a list of house numbers from a Post Code? Is their an online web service that will do this? I''m creating an app for a chinese take-away and this functionality is important. What do you think is the best way of achieving this? for UK post codes. Thanks Chris -- Posted via http://www.ruby-forum.com/.
2008 Jul 16
3
named.conf: query-source address
Hi! I fully understand and second efforts on educating people how to configure BIND to be stong to attacks and keep them from using "query-source address" with "port" option but how about binding named to particular IP address when host has many of them? Using "query-source address" without "port" is the only solution (not speaking of jails here) and safe
2006 Apr 21
2
Passing Variables to a sub template
Hi, I must be missing something very basic here. I have a parent template and I am calling a sub template like... <%= render( :partial => "window_title_bar", {"heading" => "Product Details"}) %> and in the sub template (_window_title_bar.rhtml), i am doing Heading: <%= heading %> but I am getting syntax error in the master template at line
2002 Feb 28
2
isolinux source, detecting 8086 cpu
Hi, I was looking through isolinux and noticed you had trouble detecting 8086 cpu's. I have some experience with this so I thought you might like some different info. The behavior of the "push sp" instruction changed after the 8086 to pushing sp before updating it. I've included a snippet of one of my bootstraps in case you want to use it (or just want to understand better).
2014 Aug 27
2
Dos Btrieve Windows 98 and Samba 4.0
?We are trying to migrate a Dos based btrieve application from Windows NT to Samba 4?.1.6-Ubuntu. Running one client works, running more that one client do not work. I searched Google and there are many historic pages about issues related to the btrieve / Samba combination. Are there stable solutions of this issue? Kind Regards Hendre
2006 May 02
4
useful bit of code (hopefully)
Hi, I often find myself using bits of code like this inside ActiveRecord, perhaps it''s useful for others, or others can improve on it: ########### # fix user input before validating it before_validation :sanitize_input # santize input before actual validation is called # this uses the little methods defined below def sanitize_input trim %w(adres postcode woonplaats email naam
2008 Sep 22
1
Ccreating methods on the fly / counting distinct field values
Hi, I''m pretty new to ruby and rails, so apologies if this has been covered before (I couldn''t find a thread on it). I want to retrieve a count of records held in the DB for every distinct value of an attribute. E.g. given a class Address with a postcode field, I would like to retrieve an array of ValueCount objects. The ValueCount object would hold the value retrieved from