similar to: Zebra Striping a Collection of Partials

Displaying 20 results from an estimated 3000 matches similar to: "Zebra Striping a Collection of Partials"

2005 Dec 31
7
Dynamic form? Not really!
Hi guru''s out there, Im happilly coding my first rails app, and all goes well. I find myself manually coding in a particular field all the time (company_id), that relates the contact to a company. The total coding of this form seems somewhat much. Could somebody tell me what Rails power I''m possibly missing and stuborn as I am trying to do myself? I was wondering if the
2006 Feb 24
1
Help a n00b?
So I''m trying to do that hot new thing with AJAXy forms: http://idiet.toasterwaffles.com/foods/list Here''s the relevant code in list.rhtml (for the form portion) <tbody> <%= render_collection_of_partials "list_stripes", @foods %> </tbody> <tfoot> <tr id="addFood"><%= form_remote_tag( :html =>
2006 Feb 25
7
Help with DRY: too much code in my view
I''m a newbie to rails, and really to the whole DRY and MVC thing as well, except where I accidentally fell into things doing it my own way in the past. I''ve got a fairly complex DB structure I want to create an interface for using Rails. Getting simple tables to display, edit, save, not too much problem there. But where I''m having trouble is figuring out where to
2006 Jun 03
3
Disable Migration creation in generate Model
Hi.... Is there some way to configure Rails to not create a db/migrate/###_model_name.rb when I do a script/generate model ModelName? It''s a little annoying when I''m setting up a new application since I prefer creating all the first tables in a 001_inital_schema.rb file. Then when I generate models for those tables I get migration scripts for all of them again that I have to
2006 Feb 02
12
basic ''find'' question
I am struggling to understand the methodology here... I have a find.rhtml <%= start_form_tag :action => ''list2'', :first_name = client %> <%# render :partial => ''form'' %> <p><label for="client_first_name">First name</label><br/> <%= text_field ''client'', ''first_name''
2011 Dec 05
9
jquery - word is not defined
Just starting out with a beginner book on jquery and the very first thing I am trying fails (has to be me) Rails 3.1 - other jquery things working including a poor example of drag & drop that is my ultimate target here but just simply trying to get every alternating row in a table to have a different css class So I''m using... app/assets/javascripts/people.js.coffee and put in...
2006 Mar 09
3
Need help PLEASE!!! - updating collection from form
Greetings! I''m trying to update a set of records from the same model on one form. The AWD book gives an example on p.356 but I guess I''m not understanding it. I can see from the error message I''m getting that the controller is receiving a hash of hashes back from the view, and that it''s got the stuff I expected (two values per record that was sent to the
2006 Feb 03
9
Because I''m very slow - trying to use console
I can''t see how to use variables so I am using console to test things out... clients table - a column named first_name My very brief console session... >> clients = Client.find_by_sql("select * from clients where first_name = FN") ActiveRecord::StatementInvalid: RuntimeError: ERROR C42703 Mcolumn "fn" does not exist Fparse_expr.c L1034
2006 Aug 05
3
Four Days on Rails
I''ve been reading the tutorial and I have problems with the TinyInt(1) for the attribute "item.done". I thought this thread would be the best to post it. I''m using Rails 1.1.14. When in the partial template _list_stripes appears: <%= list_stripes["done"] == 1 ? show_image("done_ico.gif") : "&nbsp;" %> it always returns the
2007 Oct 22
5
How to hook into model attribute changes?
Hi, What''s the best way to hook into any changes made to the value of a single model attribute? I need to know when the encrypted_password attribute on my User model changes i.e. when the user has changed their password. I''m not interested in the actual changed value, I just need to know when it''s been changed so that I can regenerate their API key as well. Thanks in
2006 Mar 27
0
update subset of my data
Please can someone put me out of my misery... I am missing the point here: I have a table of albums called: dealers I have a table of images: popp_images each dealer has 6 popp_images linked by foriegn key: albumid Each dealer can login using user_engine engine I restrict viewing for each dealer to their own images by assigning each dealer their own albumid. I list their images with: in my
2006 Feb 15
0
Confused by this error when trying to use ''pagination''
Trying to create stuff without resorting to scaffold command. I have a list view in my login_controller.rb file... def list_users @user_pages, @users = paginate :users, :per_page => 14 end I have a command in my list_users.rhtml file which undoubtedly calls this pagination... <% odd_or_even = 0 for user in @users odd_or_even = 1 - odd_or_even %> and instead of being presented a
2007 Apr 01
2
CentOS + GNU Zebra
Hi folks, At work, we're considering the idea to replace the presente router with a stardard box with CentOS as a SO and GNU Zebra as a routing software. The line is a 4Mbps SDSL. ?What do you think about Zebra and what are your experiencies with it? Any feedback will be so appreciated. TIA.
2006 Jan 26
42
ruby script/generate scaffold Product Admin hangs
Hi I am running Mac OX tiger with the installed ruby 1.8.2, and mysql5 (I checked that it was running in preference). I tried to run the various fixes recommended in agileweb. I am stuck on page 57, script/generate scaffold... > Could you paste in your database.yml file, from the > "config" folder inside your Rails app? If you have any > passwords entered there, you should
2006 Apr 25
3
belongs_to and has_many
I know this has been rehashed many times, but I don''t get it. I can''t find it documented to were I understand all the parts. I can make this work using Rails database design conventions, but in this case I am not able to do that. I find examples, but the ones I find do not follow the conventions. They also do not give enough information to understand what is going on. In
2007 Oct 15
2
zebra-0.95 rpm
Hi, I want to run zebra on CentOS 4.5 box acting as a firewall and router. I 'd rather like to user RPM. So I am lokking for a proper RPM. I now googled. But I could not find any for EL4 for CentOS 4. YOUR IDEAS? -- Thank you Indunil Jayasooriya -------------- next part -------------- An HTML attachment was scrubbed... URL:
2002 Jun 07
1
zebra bgp and shorewall
Hi, I plan to implement a redundant Internet connection using BGP on 2 different Linux Routers. The routing daemon software I will be using is Zebra (zebra.org). I''m wondering if I should have my Linux firewall behind the 2 BGP routers, or could I keep the shorewall on both BGP routers? Has anyone had any experience with this? Any help is much appreciated. Thanks, Sam
2002 Feb 14
1
Zebra, Routing ...
Before I start, I don''t want to do ECMP or simple bonding ... I have multiple Internet connections available to multiple boxes on one of my networks. Box A connects to ISPs 1, 2 and 3 Box B connects to ISPs 1 and 4 Boxes A and B are both connected to each other and the rest of the network. 1) I would like to set up some dynamic routing in such a way that any given outgoing packet from
2004 May 21
2
Zebra and Rip Blocking Broadcast
After installing Zebra for ripd to get win2k routes I am getting this May 20 23:24:20 ns1 kernel: Shorewall:net2all:DROP:IN=eth0 OUT= MAC= SRC=64.42.53.202 DST=64.42.53.207 LEN=92 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=520 DPT=520 LEN=72 May 20 23:25:25 ns1 last message repeated 3 times I am new to zebra, so I am assuming that this is broadcasting to windoz for routes weird !!!
2006 Jun 04
0
CESA-2006:0533-01: Moderate CentOS 2 i386 zebra security update
The following errata for CentOS-2 have been built and uploaded to the centos mirror: RHSA-2006:0533-01 Moderate: zebra security update Files available: zebra-0.91a-11.21AS.i386.rpm More details are available from the RedHat web site at https://rhn.redhat.com/errata/rh21as-errata.html The easy way to make sure you are up to date with all the latest patches is to run: # yum update -- John