similar to: how to: update a select from another select

Displaying 20 results from an estimated 3000 matches similar to: "how to: update a select from another select"

2006 Jul 19
5
weird result for a custom attr reader!
Hi all, I am having a weird problem reading a value from my model. basicaly, I have these two models: class Category < ActiveRecord::Base acts_as_tree :order => "name" belongs_to :item_type has_many :specific_category_names end and class SpecificCategoryName < ActiveRecord::Base set_table_name "Specific_category_names" has_many :products belongs_to
2006 May 29
8
Rails and user authentification
I am a the point now where I have to add user authentification to my application. Anyone can point me toward an easy to use / secure library? I know about ActiveRBAC and was wondering if there is anything else that I should consider. Thanks! -- Posted via http://www.ruby-forum.com/.
2006 Jun 08
7
How to make an OSX Finder in rails/AJAX?
I need to make a category browser that would allow nested categories. Is there any receipe on that? Currently, I use the :onchange event from one of the form element to update the first select (out of 4-5 selects), but I dont know how to elegantly reset all the child selects if I change the value from the first. All the categories are fetched from the DB and I would like a
2006 Apr 16
5
render :collection and default value
Hi all, I am having a lot of trouble to get the default value of text fields when they are generated by a partial from a collection. I have been on this for a whole week and I didnt find a single exemple on the internet of someone using a partial that generate text field with a default value. I cant believe that I am the only one having this problem. Anyone has an exemple they can show me?
2006 May 06
6
assert_raises --> how does it work?
Hi, I have this code fragment: def test_delete_concept assert_not_nil Concept.find(concepts(:entreprise).id) get :delete_concept, {:concept_id => concepts(:entreprise).id} assert_raises :RecordNotFound, Concept.find(concepts(:entreprise).id) end basicaly, on the first line, I make sure that the concept exist in the DB. On the second line I delete the concept fron the DB.
2005 Dec 29
7
belongs_to causing NoMethodError exceptions ... ?
I''ve got a really strange problem using belongs_to. I apologize in advance for the length... this is going to take a while to explain. Basic idea: Creating a User requires that the user enter an email address and activation key that matches an existing PendingUser. After creating the user successfully, that pending user should be marked as "used". The problem: When I
2008 Feb 13
2
javascript pop window from form how to update field back to main form
Hi I have question where I run web form. Now on this form I have one field with link select user. This link will pop up new window with javascript and on this window I have form with items which end user can select. Once selection is done end user press button Select User. Now I need to close that javascipt window and send back value of that selection back to form and to the field which has
2005 Aug 19
9
Patch for listbook.rb
Attached is a patch file for listbook.rb 1) Message box scrolls properly now 2) Blank lines are skipped when adding pizzas and ice cream _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
2006 May 05
8
pdf/writer: table.render_on best practices?
Hi All, I generate a pdf report that contains a table. The report is 14 pages, and it takes 20s to be rendered. Most of these 20s are spend in the render_on method. I wonder if it is possible to speed up that process? To create the report, I do the following: 1) Setup pdf layout: # Setup pdf layout pdf.select_font("Helvetica", { :encoding => "WinAnsiEncoding"})
2006 Apr 20
3
How to restrict access to images by user?
Hi, I have a some image files that belongs to some users. Only the owner of an image should be able to see it. How can I do that? I don''t think I can use send_data, because I want the image to be displayed on a "rendered" page. I don''t think I can place the images in the public folder, because if some user can figure out the name of the image then he''ll be
2004 Apr 28
9
chan_sip.c max number of retries?
Still getting the same error. Apr 29 11:57:49 WARNING[1125329600]: chan_sip.c:503 retrans_pkt: Maximum retries exceeded on call 6b8b4567327b23c6643c986966334873@211.28.255.135 for seqno 102 (Critical Request) please advise anyone!!!!!someone!!! jai
2006 Feb 28
7
windows sqlite client?
Hi all, Does anyone know a good windows client for sqlite 3? typical use is create and modify tables and export creation queries. Thanks, Nicolas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060228/363834cf/attachment.html
2007 Jun 29
12
testing instance variables that are set inside views
Hi all, In my view specs (for Rails), how can I get at instance variables that are set within my view? For example, if my view looks like this: <% @header = "My Header" -%> <div>some content</div> How can I get to @header from within my view spec? I''ve tried @header and assigns[:header] to no avail. TIA, Jeremy -- Jeremy Stephens Computer Systems
2009 Oct 21
2
Doc Value Query in Omega
Folks, Is it possible to query a document value (doc.set_value(i, val)) as part of the Omega query. I know how to do it from code. Is there a query markup to use for Omega? ...Thanks, ...Ken
2006 Mar 31
7
Checkboxes expand to show new options when checked?
I''m writing a simple CMS where every item ("listing") HABTM categories and subcategories (which themselves belong_to a category). What I''m trying to do now is create a UI effect for listing creation: when you go to create a listing, only the possible categories will be shown, but when you select a category a set of new categories will be displayed like so: Lions
2006 Jun 01
2
Best practices?
I just saw a mail about the best practices of something or other, and I was wondering is there a place where Ruby and RoR best practices can be found? Phil J. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060601/52ab6a0f/attachment-0001.html
2005 Aug 24
1
how can I create formated reports?
Hi, I would like to create reports from some of the views of my application. By "report" I mean a file formatted so that it can be easily saved and printed. To make myself just even more clear, let''s imagine I have an application that handles information about movies. When I display a movie, it shows in an html page with the name, category, actors and reviews of this movie.
2004 Nov 12
1
Enlarge ext3 Logical Volume (Filesystem) in a volume group (LVM)
Anybody know a way to enlarge a filesystem ext3 without having to unmounted it, when they are still space left in the volume group (when using LVM) ? I will be running large production linux system running Oracle. I can't stop the database everytime I have to enlarge a filesystem. We can do it with all others filesystems (JFS, REISERSFS and XFS) when they are created in a volume group. Why
2006 Nov 15
1
PAM authentication to Active Directory
Hello list, I want to authenticate (only authenticate) through active directory with PAM. I googled around and everything I found, wheter it is forum posts or howtos, it always talks about winbind and joining the linux machine to the windows domain. I do not which to do this, I only want to get PAM to authenticate with the AD and then everything else is local. Should I use pam_winbind ?
2005 Mar 11
4
actionmailer settings
A couple questions: 1) How does rails no if you are in your test, dev or production environment? 2) Does anyone have an actionMailer server settings that will work on your standard local machine? I will use the one provided for my textdrive account but for testing on my machine I am getting connection refused. Thanks. Your Friend, Jonathan Kopanas http://www.kopanas.com