similar to: Turn element hidden by default (ajax question)

Displaying 20 results from an estimated 1000 matches similar to: "Turn element hidden by default (ajax question)"

2006 Apr 08
2
ActionView::Helpers::FormHelper instance methods should take an object reference rather than an object_name.
Hi ActionView::Helpers::FormHelper methods (e.g. #text_field, #check_box...) take object_name as an argument. From this argument they infer a name that is supposed to contains the reference to the relevant object. I can''t see why the FormHelper methods were designed that way. Compared to simply passing them a reference, the current way seems too complicated and an invitation to problems
2006 May 29
2
Creating a new virtual field
Hello, I have a problem with one of my Rails-Application, I have a table and on this there is object_name and a object_nr, so i want to create a combination of both in the model for a collection box. I''ve tried something like this: def set_new_object_name objects = find(:all).to_new_object_name end def self.to_new_object_name self.new_object_name = self.object_nr + " -
2007 Apr 09
4
How do i switch off error wrapping for a specific field?
Hi, i have some issues with the default rails error wrapping. It wraps errors in a div with class ''fieldsWithError'', which is not good practice in my eyes. Adding a class ''error'' to the field would be much nicer. My solution to the problem: build your own FormBuilder. Funny enough, i found no (nice) possibility to switch error wrapping off while using the
2006 Aug 16
4
Overwrite form helper methods and call old ones in new ones?
Hi all All my forms should look the same, so I think always putting the right div etc. tags around them is a violation of the DRY principle. Until now my forms look like that: <div class="text_field"> <label for="news_item_subject">Subject:</label> <%= text_field "news_item", "subject" %> </div> Now I want the default
2006 Jul 31
6
Popup Calendar and DateBoxEngine and Change Made ...
Community, I have been putting off implementing a Date selector for too long. Tonight, I finally put it in. I made the choice to go with the datebox engine. Once I got it installed and working, I realized I didn''t like the way it required you to call it. Example: <% @dateField = model.date %> <%= date_box %> or... <% @dateField1 = model.date %> <%=
2005 Oct 04
3
[Q] file_column help needed
Hi all, I''m trying to use file_column to upload a picture but I''m getting the following error: "cannot convert nil into String" caused by the last line in FileColumnHelper::url_for_file_column(object_name, method) url << object.send("#{method}_relative_path") I don''t have any images uploaded for existing entries so does this not
2006 Jul 11
4
add method parameter for form helper
Hello, Most of the form helpers are build using Object / Method without the possibility of using a method parameter (as I know ...) text_field(object_name, method, options = {}) how do you solve this problem ? -> (I did my own helper and generate the html ... well I think there is a better way;-) -> do I have to overide text_field(object_name, method, parameters {}, options = {})
2007 Mar 18
7
How to get more informations about an association at runtime
Hi all I''m working on a Custom Formbuilder. I want it to create me with a single method call checkboxes for a given HABTM association. My model looks like this: [code=ruby]class Member < ActiveRecord::Base has_and_belongs_to_many :preferred_music_styles, :class_name => ''MusicStyle'', :join_table =>
2006 Aug 18
3
setting a value of text_field from a controller
Hi, I need to set up an initial value from controller. In my views I''ve something like <%= text_field "object", "name" %> and would like to do something like this from controller def index @object[:name] = ''default value'' end but still got an error. Object doesn''t have database model (and will not have) Thank you PS: now using
2007 Feb 23
1
How to make Rails send a file that is being written
I''m trying to build a simple proxy to Amazon S3 that would allow a client to request a url that gets mapped to a S3 Object by Rails and streamed back to the client. For S3 integration, I use the highly recommended gem AWS::S3 (http://amazon.rubyforge.org/), and to send a file, I simply use the send_file function. The concept works BUT the I can''t get the file to be sent as
2005 Oct 10
11
Samba creating multiple isntances of the deamon
(2005.10.10, 14:25) I am running Samba 3.0.14a-2 on Fedora 4. I have no problem seeing the Linux file system from any of the Windows (2000, SP4) computers attached to the network. The problem is that smbd processes are created for no apparent reason and never die. I noticed this when the computer had been up for about three days and there were some 600 active smbd processes! What could be the
2014 Dec 16
4
interrupt pipe disabled
Hello, I'm testing an APC SMT3000RMI2U connected to an USB port with Nut 2.7.2. I've got the message : "interrupt pipe disabled (add 'pollonly' flag to 'ups.conf' to get rid of this message)" I've been looking for "pollonly" in the usbhid-ups man page, but it didn't help me. Could someone explain me what does this means exactly ? What are
2014 Dec 05
2
Changing self test date
Le Thu, 4 Dec 2014 08:42:37 -0500 Charles Lepple <clepple at gmail.com> ?crivait: > On Dec 4, 2014, at 5:30 AM, Frantz de Germain <frantz at info.univ-angers.fr> > wrote: > > > Hello, > > > > does any one know how to change the date of the self tests on APC UPSes ? > > I'd like to be able to choose the day and the hour so that it happens at >
2005 Jan 25
4
'security = ads' & 'valid users ='
I will be upgrading my Samba server from 2.2.8a to 3.0.10. I currently have security set to 'share' and plan on migrating to 'ads' for improved authentication. I have one snag, though... I have remote users who reside in and are managed by a Windows domain that is not in my control. There is no trust relationship at all. If I use 'ads' security, can I add a 'valid
2014 Dec 17
2
interrupt pipe disabled [APC SMT3000RMI2U]
On Dec 16, 2014, at 9:45 AM, Frantz de Germain <frantz at info.univ-angers.fr> wrote: > Bye the way I just realize that I can't retrieve the ups.load, among other > thing :-( To the best of my knowledge, Microlink is not supported by any third-party tools (including NUT), but some variables are exposed via standard USB HID. Apparently, ups.load is not one of them. Your UPS might
2014 Dec 04
2
Changing self test date
Hello, does any one know how to change the date of the self tests on APC UPSes ? I'd like to be able to choose the day and the hour so that it happens at office hours, in case of any problem... I've tried to do this by launching a test at a convenient time, but the self tests still occurs at the previous date and hour :-( Regards. -- Frantz de Germain D?partement Informatique UFR
2007 Sep 22
1
Rails newbie: passing a value to hidden form field, then getting it
Warning: I am as green as #00FF00 with rails :-) I have an rhtml view that shows a survey: /views/survey/show.rhtml. I have a Survey model, helper and controller. I''m using the acts_as_commentable plugin to collect comments, and trying to save user comments from users who have taken a survey (don''t ask -- it''s just a test). To save the comment, I need the id of the
2008 Dec 07
0
boolean button helper
I don''t have a blog, but wanted to share this little bit of code with other semi-beginners like myself who are still learning to take advantage of rails features. Selecting an attribute with a boolean switch is a common pattern in forms. You can do it with a check box, but radio buttons are more expressive in some situations and better convey to the user that they are making a mandatory
2014 Dec 19
1
Changing self test date
On Dec 18, 2014, at 9:16 AM, Frantz de Germain <frantz at info.univ-angers.fr> wrote: > What is the difference between "test.battery.start.deep" and > "test.battery.start.quick" command (upscmd) ? The intent for the quick test is to only discharge the battery a little bit, whereas the deep test would discharge until the low battery threshold is reached (or the
2014 Dec 04
0
Changing self test date
On Dec 4, 2014, at 5:30 AM, Frantz de Germain <frantz at info.univ-angers.fr> wrote: > Hello, > > does any one know how to change the date of the self tests on APC UPSes ? I'd > like to be able to choose the day and the hour so that it happens at office > hours, in case of any problem... > > I've tried to do this by launching a test at a convenient time, but