similar to: partial_counter

Displaying 20 results from an estimated 400 matches similar to: "partial_counter"

2006 Jun 23
1
question closing page after action
Hi all, does anyone know of a rails command i can use so that at the end of an action, the page will close at termination? (i.e it would be the equivalent of a javascript <script> window.close </script> and would look something like this def create @contact = Contact.new(params[:contact]) if @contact.save :action => :closewindow ## or something like this? ##
2006 Jun 01
9
access model from controller
Hello, Rather new to RoR, so I''m not sure about the terminology and such :-/ . My question is: how could I know the model which is associated to a controller? For example: - controller class is TestController, which is a subclass of ApplicationController - associated model class is Test How could I write some code in a method of ApplicationController to dermine the current
2006 Jul 10
9
ROR questions
Hi, ? I''m a Ruby on Rails newbie.? I''ve been tasked with building our office''s first ROR application, and I am the only one working on it, so I am muddling through with a couple of books...? Moving along slowly but need some discussion time with some people who KNOW it and can maybe offer some answers to questions I haven''t found in my books. ? First - what is
2006 Aug 17
2
Knowing the partial iteration number
Hi, How can I know the iteration number of a *render (:partial)* iterating through a collection? Example: I got a collection containing 3 elements: *John *Pierre *Chris John would respond to 1, Pierre to 2 and Chris to 3 and so on... Kind of like the *cycle* method acts but to know the iteration number. Guillaume Carbonneau -------------- next part -------------- An HTML attachment was
2006 May 03
3
Graceful degrading AJAX show/hide
Ok i''ve done a bit of hunting around and I can''t find much documentation on how ensure an ajax call through an rjs file degrades with javascript off. Essentially, if javascript is off, I want to refresh the page and pass a variable from the controller to the page the user is on. Not use the rjs file. At the moment i have this: <%= link_to_remote("Advanced Search",
2006 Feb 06
6
.rjs template doesn''t load?
Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060206/cf123b71/PGP.bin
2006 May 14
3
hi all
Not much I can say except that I am very excited to enter this new world(solely for me of course, kind of late) of rubyonrails.If anyone has any patience or just plain kindness to help me on my first steps (leaps?) , I would greatly appreciate any links, references, tips, hellos, or whatever else is offered. Thanks ahead of time, Shai Rosenfeld Octava I -------------- next part
2006 May 28
8
a newbie question, if possible to help
i was wondering if anyone can help me form a very simple "if" statment in the controller... i did a usual scaffold for table ''pages'', and everything is working out well, i did the main site ''backbone'' and all, and everythings good....the thing is, now i need to make sure that the site-admin does not have the possiblity to destroy page 1 or page 2.
2007 Feb 05
3
rsync 3.0.0cvs timeout
Hi, When I send this command, I get a timeout almost every time... --- this is the client side --- rsync -av --timeout 120 /home/bat/20070205_0501/log/sync_dns29_log /home/bat/20070205_0501/log/sync_dns29_serial /home/bat/20070205_0501/log/sync_dns29_tcpdump_log.gz --port 5873 fileserver::test/20070205_0501/log sending incremental file list sync_dns29_log sync_dns29_serial
2008 Feb 11
3
[PATCH 1/5] Change vsmp compile dependency
Change Makefile so vsmp_64.o object is dependent on PARAVIRT, rather than X86_VSMP Signed-off-by: Glauber Costa <gcosta@redhat.com> Signed-off-by: Ravikiran Thirumalai <kiran@scalemp.com> Acked-by: Shai Fultheim <shai@scalemp.com> --- arch/x86/kernel/Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/kernel/Makefile
2006 Jun 28
6
select_tag
in my controller @cursos = Curso.find_all in my view i''m trying to do a select_tag with the results @cursos, using a helper select_tag "name" options_for_select(@cursos) --------> not works select_tag "name" @cursos --------> not works how to do it, using the helper? tks -- Posted via http://www.ruby-forum.com/.
2006 Jun 13
3
acts_as_tree problem accessing parent object
i have a model called certification_types that i''ve declared as acts_as_tree. I have a model called certification that belongs_to :certification_type . class CertificationController < ApplicationController ..... def summary_list @certifications = Certification.find(:all, :order=>''date'') end end summary_list.rhtml <% for certification in
2006 May 30
2
Hi , Anyone From Singapore?
Hi All , I been trying out RoR and reading the mailing list for sometimes and wondering if anyone of you guys from Singapore ? I am thinking of a meetup or something for RoR fans here. If you are , pls contact me by my email ? Thank you very much. regards billy PS : Apology for sending non-ruby question email in the list.
2007 Mar 19
3
jQuery Users...
Any jQuery users out there? I would like to learn more about incorporating jQuery with Rails as the performance seems to be the best of any library I''ve seen and it is great in separating the JScript from the HTML. Any suggestions on where to get started? I''ve read this (http://b.lesseverything.com/2006/12/31/making-jquery-and- prototype-play-nice-in-rails) but was looking into
2006 Jul 18
5
Newbie RoR question
I am currently working on a small database project to track company assets. Right now my Database consists of 3 tables. 1 for the equipment, 1 for the users info, and 1 for the type of equipment. I have all 3 databases working on a model test site using RoR. Where i am having trouble is getting the databases to talk together. I can''t find this answer anywhere else. My main table
2000 Apr 05
2
My first R-program
Sorry, I pasted the wrong file in earlier... this is the correct one: pValCalculator(b, n=20, m=20) { ind <- 1:min(c(n,m)) prob <- (1-pnorm(b,sd=std*sqrt(ind))) prob1 <- sum((n-ind+1)*(m-ind+1)*prob) prob1 } inputData <- scan("/users/lvssso/projects/LAMA/output/pValLamaScore.tmp", list(block1 = "",block2 = "",width1 = 0,width2 = 0,alignment = 0,score
2007 Jul 24
4
How to pull the title and url from an iframe?
I have an iframe in which the user can browse. When they hit the ''add this page'' button i need to retrieve the url and the title of the page currently shown in the iframe. Does anyone know how to do this? Do i need to assign a variable name to my iframe? (currently it just sits in my template as a bit of html) -- Posted via http://www.ruby-forum.com/.
2010 Dec 02
4
rules with multiple users/groups
Hi All, I''m using shorewall 4.0.15-1 on debian 5.0.5 and It works fine. I want to start using rules based on users. This is supported in the shorewall-rules file, However it seems that each rule can only be associated with one user or group. Does this mean that I cannot have a rule apply to several users which belong to several groups? Will creating duplicate rules for each user
2006 Jul 10
2
Formatting of dates in a text_field
When displaying a date field using a text_field object, is it possible to specify how the date will be formatted? <%= text_field ''item'', ''created_at'', {:class=>"text-input", :size=>18, :disabled=> true} produces 2006-07-07 12:00:00 I would like to reformat it to something like 07/07/2006 12:00pm -- Posted via
2006 Jun 22
4
Filter on variable
Hi all, I have a question about filtering on a variable. If I have the following code in my controller to select a list of users > @allusers = User.find(:all, > :conditions => [''team_id = ?'', @params["id"], > :order => ''created_at'') Is there an easy way to find out all users who