search for: gmdstudio

Displaying 20 results from an estimated 20 matches for "gmdstudio".

Did you mean: gmdstudios
2006 Apr 03
4
Layout Question w/ code from vendor library
I am new to Ruby on Rails in general and apologize if this question is trivial and/or has been asked before ( my searches did not turn up any threads ). I am using the cookies function from actionpack which I have located in my vendor/rails/actionpack directory. Using: cookies[:username] and cookies[:password] from within a controller file works just fine, I am able to set and read
2006 Apr 03
2
Looking for an example ...
... for overriding the default behavior of scaffold''s builtin create and update handlers. Any help would be grealy appreciated! -Andy -- Posted via http://www.ruby-forum.com/.
2006 Apr 14
11
Whats the best Ajax way to update a textarea''s text?
I am looking for a way to update the text-value within a textarea from an Ajax render call inside of a controller. Is there a way to do this without rendering an the partial containing the textarea? Thanks, Andy -- Posted via http://www.ruby-forum.com/.
2006 Apr 10
3
form_remote_tag can only have one submit button?
I setup a form_remote_tag with several submit buttons, all of them share the same name ( ''do_action'' ) and their values differ. eg. button1 named do_action with value ACTION1 button2 named do_action with value ACTION2, etc No matter which button I press the value passed is always the one defined for the first of these buttons ( the correct value associated with the pressed
2006 Apr 03
1
Q: periodically_call_remote ( how to make it execute just once? )
I posted this ealier on the web forums but noticed a similar question about this function and one user responded to try this list instead. If anyone can help I would greatly appreciate your suggestions. Q: Is there a way to use periodically_call_remote to run just one time instead of every '':frequency'' seconds? I tried putting the call inside the div container thinking it
2006 Apr 10
3
form_remote_tag : additional onsubmit funct. possible ?
Is there a way to add onsubmit functionality to a form_remote_tag with an additional javascript directive? eg I''d like for an inline javascript to make the form''s div container hidden as soon as the button is pressed to avoid having it possibly get pressed again ( sometimes the rails response is slow enough for a user to think they need to re-press it ). example: <div
2006 Apr 24
9
Confusion with expressing many to many relationship
Hi folks, I am in the process of converting an existing non-rails application to rails, and am not sure what the best approach would be for specifying the relationship between the two sets of data. I''ll describe the existing table structures first. Table 1: Urls Each url has a unique id and two lists of Phrases, these are currently setup as varchars with "," delimitation -
2006 Apr 28
9
Q: Timing of render :update in an action ?
Hey folks, am hoping someone can set me straight with a solution to an issue that has come up involving the timing of rendered page elements in relation to the completion of an action''s execution. I have an ror search app which searches through two tables consisting of 7,000 page urls and a table w/ 87,000 related keyphrases within those pages. Search results can take anywhere from 2
2006 May 01
1
Is there a way to do unbuffered render :update ?
Greetings all, I have an action which does some stuff and then does a render :update to replace a container with a partial, the delay due to processing is more than I''d like for expecting a user to wait without hitting the button again and again. Is there a way to force the render''s display when the satement is executed rather than at the end of the action? Thanks, Andy --
2006 May 03
2
rake appdoc Question regarding comment formatting
I tried googling and searching the forums here but was unable to locate an answer, please forgive if this has been covered. Is there any way to provide formatting guidelines to dictate how parsed comments are displayed in the resulting html? In the simplest example, is there a way to specify a linebreak (break tag)? Thanks, Andy -- Posted via http://www.ruby-forum.com/.
2006 Apr 03
0
Question: periodically_call_remote ( only run once? )
Is there a way to use periodically_call_remote to run just one time instead of every '':frequency'' seconds? I tried putting the call inside the div container thinking it would be overwritten when the first remote call replaced the div contents but no such luck. I''d basically like to simulate link_to_remote but not require a click and have it performed automatically
2006 Apr 04
1
Re: Rails Digest, Vol 19, Issue 102
Thank you Alain, I am not at all opposed to hiding one link and displaying the other ( I assume you mean having a div container for each and setting the appropriate style ) Unfortunately, the problem remains for me that I still do not know how to modify those style attributes from the action that gets called via the first link, I still have not had any success doing a page.replace_html, or know
2006 Apr 10
2
Any way to implement delay() with ruby code?
That is, is there any way to do something like an RJS page.delay() except with ruby code statements in the body instead of RJS statements? If not, what kind of options would I have for wanting to execute a set of statements n seconds in the future? Thanks, Andy -- Posted via http://www.ruby-forum.com/.
2006 Apr 13
0
Custom validation of form fields?
I have been looking at the many validates_* methods that we have available and I am wondering is it possible to create a custom validation method to be performed on a form field? I have the following form (remote via ajax) <%= form_remote_tag :url => { :action => ''do_action'', :id => @pid }, :before =>
2006 Apr 20
1
Gruff Charting Question
I am using Gruff to chart 2 sets of data and have run into a problem, the numbers between the two sets are so far apart that the first set appears as a mostly straight line at the top and the second a mostly straight line at the bottom. Is there a way to set the min/max vertical column values so that I can squeeze the data closer together so that there is more ''movement''? If
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
2006 Apr 05
6
Howto add application-wide variables?
I suspect this is something I should know already but I can''t seem to get it right, how can I create application wide variables and have them accessible to all my controllers? I tried creating a plugin and having my controller require a specific method from that plugin to access its variables but that didn''t work, so I am left scratching my head. eg from plugin
2006 Apr 29
2
Seeing performance problems with has_many :through relation
Greetings all, I am looking for some insight from some of the more experienced with has_many :through relationships as I am having a hard time reconciling the performance I am seeing. I have 2 tables that are linked together via has_many :through Table 1: urls ( there are about 7,000 records ) 2 fields, id and url Table 2: phrases ( there are about 87,000 records ) 2 fields, id and phrase (w/
2006 Apr 07
5
Confusion about has_many / belongs_to ...
I have a table called players and its model Player, and I have a table called games and its model Game. In the games table I have: player1_id int(11) player2_id int(11) I want the tables to be associated so that I can access the player objects using table.player1 and table.player2 rather than having to lookup the objects based on the ids. I am not sure how to go about this but I suspect I
2006 Apr 04
7
Not getting the whole RJS-based partial rendering concept ...
I have been trying all kinds of different ways to produce what I think should be a simple effect, but have not had any luck yet and apparently I am not following the general idea... What I am trying to accomplish is the following (part 1 works and part 2 does not): 1. One of my views has a link_to_remote which updates a div container with a table of data my example is <div