[Rails] Where on Ubuntu is Rails?

2013-10-07 Thread RVince
I followed the setup instructions for a fresh install of Mint15 according to this excellent tutorial : http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/ which sets up via rvm. I followed the instructions therein, but when I am in my ~ directory, i get: user@Mint15Mate64 ~ $ rails

[Rails] Re: Where on Ubuntu is Rails?

2013-10-07 Thread RVince
user@Mint15Mate64 ~ $ rvm info ruby-2.0.0-p247: system: uname: Linux Mint15Mate64 3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17 18:16:28 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux system: mint/15/x86_64 bash:/bin/bash = GNU bash, version 4.2.45(1)-release

[Rails] Re: Where on Ubuntu is Rails?

2013-10-07 Thread RVince
everything (I reloaded .bash_profile befoe the reboot). Must I reload .bash_profile every time? I thoughtthis was loaded whenever I opened a terminal window? Thanks so much for your help in getting this going! RVic On Monday, October 7, 2013 9:40:11 AM UTC-4, RVince wrote: I followed the setup

[Rails] ruby script/plugin install ...

2013-10-07 Thread RVince
I am trying to migrate a rails app from the rails 2.x world (which was the last time I worked with rails) and I'm trying to run the command: ruby script/plugin install git://github.com/activescaffold/active_scaffold.git --force which returns:

[Rails] Oracle listner with port forwarding issue

2012-12-20 Thread RVince
) ) ) Any idea what I should append to this so as to get the listener to work properly with the port forwarding here? TIA, RVince -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk

[Rails] Create a Migration from an existing table?

2012-11-15 Thread RVince
If I have a table in MySQL on an existing Rails project, how do I go to creating a migration for it? All the examples I see online seem to be geared to creating models and tables from a migration -- but how do I go the other way and create a migration itself from a table? Thank you. -- You

Re: [Rails] Create a Migration from an existing table?

2012-11-15 Thread RVince
, November 15, 2012 11:12:31 AM UTC-5, Colin Law wrote: On 15 November 2012 16:01, RVince rvin...@hotmail.com javascript: wrote: If I have a table in MySQL on an existing Rails project, how do I go to creating a migration for it? All the examples I see online seem to be geared

[Rails] Models and erbs

2012-11-13 Thread RVince
eventfeatures of a specific eventfeature.event_id TIA, rvince -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk

[Rails] Re: Models and erbs

2012-11-13 Thread RVince
Colin, no, events and features have no relationship to each other (Eventfeatures are like features, but they are a separate object here). So: Event has_many : evenfeatures and Eventfeature belongs_to: event Thanks! rvince On Tuesday, November 13, 2012 11:22:30 AM UTC-5, RVince wrote: I'm

Re: [Rails] Re: Models and erbs

2012-11-13 Thread RVince
eventfeatures that belong to the given event -- how do you specify that (or is it implied by the Eventfeature model wherein I say it belongs_to :event) ? Thanks for your help here. rvince -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post

Re: [Rails] Re: Models and erbs

2012-11-13 Thread RVince
Thanks Colin, Yeah, I better do that. I'm not a newbie, BUT I haven;t been on an RoR project since 09 (just all Python and Java in the interim) and the Magic of things like ActiveRecord I have forgotten about, not to mention much of the syntax. Thanks for your help here. rvince On Tuesday

[Rails] vendor dir in rails project

2012-11-08 Thread RVince
If I have a /vendor dir in a rails project, how can I have my ruby environment use what is in the vendor dir? How do I take what is there, resident locally, and have it be integrated into my version of ruby (I am using RVM incidentally). Thank you. -- You received this message because you

[Rails] Version changes listing

2012-06-28 Thread RVince
Anyone have a URL with a listing of what has changed for the various versions of Ruby and of Rails through the various versionings? Thanks. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to

[Rails] Re: Version changes listing

2012-06-28 Thread RVince
Carlos, I keep going over this url, but I dont see any reference to version changes here. What am I missing? Thank you. On Jun 28, 4:39 pm, Carlos Mathiasen gunmath...@gmail.com wrote: You can see this in rails guides[1] [1]http://guides.rubyonrails.org Matt's -- You received this message

[Rails] Ubuntu Linux Editor / Prettiefier

2010-04-19 Thread RVince
Anyone aware of an editor I can use on Ubuntu that will do RoR syntax text coloring and a code prettiefier I can use under Linux for RoR code? Thanks R.Vince -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email

[Rails] Re: Ubuntu Linux Editor / Prettiefier

2010-04-19 Thread RVince
Thanks so much guys! -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For

[Rails] Module accessing controller data

2010-04-15 Thread RVince
I have data, :current_user, in my Application Controller: class ApplicationController ActionController::Base helper_method :current_user private def current_associate return @current_associate if defined?(@current_associate) @current_associate = current_associate_session

[Rails] Re: Module accessing controller data

2010-04-15 Thread RVince
Lasse, It doesn;t inherit anything: class Ruport::Controller ... -R.Vince On Apr 15, 3:20 pm, Lasse Bunk lasseb...@gmail.com wrote: Hi R. Vince, What does RuportController inherit from? /Lasse 2010/4/15 RVince rvinc...@hotmail.com I have data,  :current_user,  in my Application

[Rails] Accessing method in another controller

2010-04-12 Thread RVince
If I have : class X ApplicationController def some_method ... end end and I have class Y ApplicationController end How, from a method within class Y, can I call class X's some_method ? TIA, RVince -- You received this message because you are subscribed to the Google Groups Ruby

[Rails] Re: Accessing method in another controller

2010-04-12 Thread RVince
Seems the best solution is the straight OOP solution: class Y X ... something = some_method end -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To

[Rails] Re: controller to controller call

2010-04-12 Thread RVince
See my post a few posts earlier on accessing a method in another controller, or you can always put the common method in a module. - RVince On Apr 12, 10:27 am, Me chabg...@gmail.com wrote: How would you call an action from one controller to another? -- You received this message because you

[Rails] Ruport - table data to []

2010-04-02 Thread RVince
Anyone on here know how to access the data used in a Ruport table and return it as an Array [] ? Thank you. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To

[Rails] Using Builders

2010-04-02 Thread RVince
much, RVince -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options

[Rails] Re: Using Builders

2010-04-02 Thread RVince
Here is the builder file: xml = Builder::XmlMarkup.new xml.graph(:caption='Closing Ratios', :numberPrefix='', :formatNumberScale='0',:decimalPrecision='4') do for item in arr_data xml.set(:name=item[0], :value=item[1],:color=''+get_FC_color) end end -- You

[Rails] div disappearing when enclosed partial re-rendered

2009-12-28 Thread RVince
Below is controller code wherein asses gets called, and subsequently (re) renders the hand' partial (which is enclosed in the view play (which is what was originally called to invoke this whole thing). It contains javascript to invoke the asses() method in the controller, below. However, when I

[Rails] Re: From DB to migrations

2009-12-15 Thread RVince
Thanks guys, This was precisely what I was looking for. -RVince. On Dec 15, 4:53 am, Mickael Gerard mika...@gmail.com wrote: Hello, Moreover if you use specific Mysql type such as ENUM or SET. It may not be take in account during the dump. But you will find some plugins or gems that fix

[Rails] text_field_with_autocomplete and onKeyUp()

2009-12-15 Thread RVince
I have Rails 2.3 app with a text_field_with_autocomplete and I need to perform an action in the javascript onKeyUp() method. So, in effect, I believe i need to override this method. Does anyone know where this exists in the directory structure? -- You received this message because you are

[Rails] Re: text_field_with_autocomplete and onKeyUp()

2009-12-15 Thread RVince
if I add the OnKeyUp() to that field though, it breaks the autocomplete. On Dec 15, 4:44 pm, Hassan Schroeder hassan.schroe...@gmail.com wrote: On Tue, Dec 15, 2009 at 1:25 PM, RVince rvinc...@hotmail.com wrote: I have Rails 2.3 app with a text_field_with_autocomplete and I need to perform

[Rails] Re: which is the most popular Ruby on Rails AUTHORIZATION gem/plugin at the moment???

2009-12-14 Thread RVince
Authlogic I know is extremely widely used, may be the most popular. - R. Vince -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send

[Rails] Re: which is the most popular Ruby on Rails AUTHORIZATION gem/plugin at the moment???

2009-12-14 Thread RVince
whoops, and I believe it does authorization. On Dec 14, 11:18 am, RVince rvinc...@hotmail.com wrote: Authlogic I know is extremely widely used, may be the most popular. - R. Vince -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post

[Rails] From DB to migrations

2009-12-14 Thread RVince
If I have an ancient app which uses a (MySQL) database because the db structure was NOT created by migrations -- is there a way I can go from the DB stricture to the migration files so that I could recreate the DB on a different machine with a different type of DB ? Thanks, RVince. -- You

[Rails] View change on db field change

2009-12-12 Thread RVince
I have an issue whereby, say I have a button in a view..that shows one way if a boolean field in a db is true, and another way when it is false. When the value of that field in the db changes, I want the button;s state in the view to change as well. How would you guys recommend I do this?

[Rails] Accessing parameter for password_field

2009-12-08 Thread RVince
If I have a form in a view (below) shouldn't I be able to access the password field in the corresponding controller with params [:password] ? -RVince % title Login % % form_for @associate_session do |f| % %= f.error_messages % p br/br/ %= f.label :username %br / %= f.text_field

[Rails] Re: Why do so many Ruby/Rails developers use Macs?

2009-12-08 Thread RVince
Colin, If you were running on Ububtu, what editor would you use? -RVince On Dec 4, 4:32 pm, Colin Law clan...@googlemail.com wrote: 2009/12/4 Agustin Nicolas Viñao Laseras agustinvi...@gmail.com: So sad that Mac not in countries like Argentina, only have expensive resellers, we must pay

[Rails] Re: Why do so many Ruby/Rails developers use Macs?

2009-12-08 Thread RVince
order, similarly with labor. -RVince On Dec 4, 1:44 pm, Ron Brinson ron.brin...@gmail.com wrote: Then why is it so hard for me to find just one of you guys for a Delaware spot?  I need a ROR Mac Developer for a project with Bank of America in Delaware.. On Fri, Dec 4, 2009 at 1:33 PM, Jim

[Rails] Where's all this coming from?

2009-12-05 Thread RVince
...and is it a problem? The javascript include files, which I have specified in my /layouts/application.html.erb, which acts as page shell where I insert other views, specifies the following: %= javascript_include_tag :defaults % %= javascript_include_tag uplog % %=

[Rails] What is the Ruby idiom for this?

2009-11-22 Thread RVince
whose channel_id matches my_channel_id with the lowest batting order. Doing this in a couple of sql statements is quite trivial -- but is there a way to do it in a purely Ruby-like idiom? Thanks, RVince -- You received this message because you are subscribed to the Google Groups Ruby on Rails

[Rails] Re: What is the Ruby idiom for this?

2009-11-22 Thread RVince
in the C-like syntax of Java, and avoiding Ruby and it's idioms, making use of Rails this way. On Nov 22, 10:47 am, Eno ra...@bitblit.net wrote: On Sun, 22 Nov 2009, RVince wrote: I have a problem regarding an algorith, for a record I am looking for. I can do it in straight sql statements, but I

[Rails] Re: What is the Ruby idiom for this?

2009-11-22 Thread RVince
end I'm not sure can be more clearly expressed in a sweeter way, especially if the criteria changes in the future -R.Vince On Nov 22, 10:59 am, Eno ra...@bitblit.net wrote: On Sun, 22 Nov 2009, RVince wrote: See, I don't htink there IS an easier way -- just a Ruby-occluded way called

[Rails] Creating a new Y object from X's controller

2009-11-21 Thread RVince
If I am in the controller for Model X, and inside a method there I want to create a new instance of (i.e. insert a new row into the DB table for) Model Y, how do I express this? Thanks, R.Vince -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

[Rails] calling the parent class's method

2009-11-20 Thread RVince
If I have a method called delete in a class which a class I am creating is descended from, and I call the delete method in the child, how do I have the child call the parent class's delete near the end of the child class's delete method? Thanks -- You received this message because you are

[Rails] How to remove a gem

2009-11-03 Thread RVince
I would like to remove (uninstall) a particular gem. I installed the gem creator's beta copy of their next release, but it's problematic, and I neet to revert to the most recent stable version. How might i uninstall a particular gem? --~--~-~--~~~---~--~~ You

[Rails] Javascript in text field with autocomplete

2009-10-29 Thread RVince
really want to do is call a method in my controller if either: 1. The text field is empty, and previously was not -or- 2. The text field is now not empty, and previously was empty. Thanks, RVince --~--~-~--~~~---~--~~ You received this message because you are subscribed

[Rails] HTML Button to call RESTful URL?

2009-10-26 Thread RVince
How can I amend a button on my form that looks like: INPUT TYPE=BUTTON OnClick=$('leads').toggle();return true; VALUE=Submit To invoke a method def leads .. end in my ChannelsController ? Thanks, Rvince --~--~-~--~~~---~--~~ You received this message because

[Rails] Re: Currency helper

2009-10-24 Thread RVince
Inputting valid currency amounts in a textbox On Oct 23, 2:25 pm, Marnen Laibow-Koser rails-mailing-l...@andreas- s.net wrote: RVince wrote: Is there a helper method available for inputting currency amounts? What do you need a helper for? Best, -- Marnen Laibow-Koserhttp

[Rails] Selecting from a large pool of items

2009-10-23 Thread RVince
of records!) that I can accomplish a selection without using a select box -- or, of minimizing the records in the select box so as to make this workable. Are there any other html controls I can use? What do people use when they have thousands of options to select from? Thanks, Rvince

[Rails] unwanted line break

2009-10-23 Thread RVince
In using form helpers, where I specify: %= f.label Amount $ % %= f.text_field :amount % I get a line break between the label and the text field. How do I precent that? Thanks, Rvince --~--~-~--~~~---~--~~ You received this message because you are subscribed

[Rails] Currency helper

2009-10-23 Thread RVince
Is there a helper method available for inputting currency amounts? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com To

[Rails] Loading

2009-10-21 Thread RVince
, and consists of just one line: %= auto_complete_result @channelnotes, :note % Can anyone tell me what might be going on here that the annoying Loading is being appended to my view? Thanks, rvince --~--~-~--~~~---~--~~ You received this message because you

[Rails] Problems with Redbox

2009-10-09 Thread RVince
? ANyone know of a workaround?Thanks, RVince --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from

[Rails] What in the world might this be?

2009-10-07 Thread RVince
I am using the autocomplete plugin succesfully in a Rails 2.3.2 application. However, when I run in firebug, when it first renders, I get the following error, below. Can anyone tell me what on earth might be the cause (and cure?) of this? Thanks, RVince element is null anonymous(Object name

[Rails] Unique indexes

2009-10-07 Thread RVince
I have a unique index on Channelnote.note. In my controller, I go to save the Channelnote. But, if the note portion already exists, it naturally throws an error. How can I alleviate this, so that it only saves if the note is NOT already in the table? Thanks, RVince cnote

[Rails] Named routes and a Railscast

2009-10-06 Thread RVince
route? I can see routes specified in my / config/routes.rb but I don;t understand how I should specify it to this javascript file. Can someone please show me how to do this? Thanks, RVince --~--~-~--~~~---~--~~ You received this message because you are subscribed

[Rails] Re: select helper

2009-09-29 Thread RVince
problem! -RVince --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails

[Rails] select helper

2009-09-28 Thread RVince
How do I amend the form helper: %= select(lead, associate_id, Associate.all.collect {|p| [ p.to_s, p.id ] }, {:include_blank = ''}) % (which is magnificently SIMPLE, and I don't want to convolute it here, which is why I am asking the experts on this list...) To NOT display records where

[Rails] Re: select helper

2009-09-28 Thread RVince
Suppose I have the following then in my view -- I am creating a form for the model 'Lead' and there is a field lead.associate_id. In my controller, I am setting a variable to a model @Up, and @Up has an associate_id also. I would like the default lead.associate_id be set in my select with the

[Rails] Re: select helper

2009-09-28 Thread RVince
Whoops! You're right! % form_for :lead, :url = { :controller = 'channels', :action = lead }, :html = {:name = 'leadform'} do |f| % %= f.label :origin %br / %= f.select( associate_id, Associate.find(:all, :order = 'associates.lastname ASC', :conditions = ['deleted=0']).collect {|p| [ p.to_s,

[Rails] Forcing a wait

2009-09-23 Thread RVince
I have something in my controller which needs to wait 1 or 2 seconds before doing a render ... Is there a means in Ruby where I can make things wait by x seconds or milliseconds before continuing processing a request? Thanks, RVince --~--~-~--~~~---~--~~ You

[Rails] Controller/view in div

2009-09-14 Thread RVince
make a view contain a div that corresponds to the controller/view of another table? Thanks, RVince --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email

[Rails] Scaffold (form) for single record

2009-09-11 Thread RVince
I am looking for a sort of scaffolding (because the schema of the individual table whose individual record I do not know until runtime) for putting into a div to be displayed in say, redbox. Does anyone have anything along the lines for that they might recommend? Thanks, RVince

[Rails] Re: Trying to delete all but most recent 10

2009-09-07 Thread RVince
Using MySQL 5.0.27 Community Edition, Rails 2.3.2 and MySQL adapter. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com

[Rails] Re: Trying to delete all but most recent 10

2009-09-07 Thread RVince
Ah, thanks Fred, Yes, this explains then why my other records are not being saved back -- I get it (though, this has nothing to do with the partials -- that's a different issue. In this particular issue, I am merely pruning the table when the user logs off). Thanks! -RVince On Sep 7, 8:00 am

[Rails] Trying to delete all but most recent 10

2009-09-06 Thread RVince
I have a table where I am trying to delete all but the 10 most recent records. My code is as follows: cnotes = Channelnote.find(:all, :order = 'tstamp DESC', :limit = 10, :conditions = [deleted=0]) Channelnote.delete_all; for cnote in cnotes do g=cnote.save

[Rails] Re: Trying to delete all but most recent 10

2009-09-06 Thread RVince
Hassan, Same problem though -- it doesn;t save them back. They just all get deleted, nothing saved back. Here is my code (all the saves evaluate to true, btw) and the log: puts deleting all but 10 channelnotes @cnotes = Channelnote.find(:all, :order = 'tstamp DESC', :limit = 10,

[Rails] Caching question

2009-09-05 Thread RVince
anything about caching in Rails, and, if possible, ways to turn it off so that things really DO get re- rendered? Thanks, Rvince --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post

[Rails] Repopulate select on partial render

2009-09-04 Thread RVince
the select helper in the channelnotesfield helper shown below. I've looked at it up and down in firebug, and just dont see anything failing here. Is this the correct behavior? If so, how can I make that select repopulate after a controller action? Thx, RVince div id=notesdiv style=float: right; Notes

[Rails] Re: Shouldn't this insert in table?

2009-09-03 Thread RVince
Im confused regarding ActiveRecord here -- I'm just trying to add a record into the table associate with MyB from MyAsController. -RVince --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group

[Rails] Re: Shouldn't this insert in table?

2009-09-03 Thread RVince
/controllers/channels_controller.rb:170:in `cxl' Thanks for looking at this for me guys -- I'm just confused about why this won't write a Channelnote record here. -Rvince --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby

[Rails] Re: Shouldn't this insert in table?

2009-09-03 Thread RVince
hair and ponytails, writing cobol. If I just stick with Java I will become one of them! Which is why I am forcing myself to become rails-proficient (because as I say, Struts if for guys who don't know Rails under JRuby.) Thanks again. -RVince

[Rails] Re: Shouldn't this insert in table?

2009-09-02 Thread RVince
Fred, If I don't have any validations, then it must be that one of the parameters I am trying to set in the model doesn't comport with what the database is looking for I assume? Thanks, RVince --~--~-~--~~~---~--~~ You received this message because you

[Rails] Shouldn't this insert in table?

2009-09-02 Thread RVince
in MyAController I want to create an instance of MyBModel, and have it insert into the table for the MyB models So, in a function in MyAController, I have MyB myB = MyB.new myB.something = whatever myB.save Shouldn't that have inserted a new row into the table for MyB models?

[Rails] Re: Shouldn't this insert in table?

2009-09-02 Thread RVince
Ah, right..it really IS so much easier. Sorry for the dumb Q's here guys, been stuck in silly Javaland with the day job, and not thinking the RubyRails-sense properly here. -Rvince On Sep 2, 11:28 am, Colin Law clan...@googlemail.com wrote: 2009/9/2 RVince rvinc...@hotmail.com

[Rails] Re: Javascript with select in partial

2009-09-01 Thread RVince
/views/channels/ _channelnotesfield.html.erb from the controller ChannelsController as shown above. Any idea what I dont have quite right here? Thanks again! -RVince --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby

[Rails] Re: Javascript with select in partial

2009-09-01 Thread RVince
' Yes, I always use firebug, but how could I have used it to have debugged this? -RVince On Sep 1, 6:10 pm, Hassan Schroeder hassan.schroe...@gmail.com wrote: On Tue, Sep 1, 2009 at 3:42 AM, RVincervinc...@hotmail.com wrote: And that does seem to invoke things. However, when I do it your way

[Rails] Re: Javascript with select in partial

2009-08-31 Thread RVince
Hassan, Samiron, THank you for your help, but both of these solutions result in the same problem. THe javascript in the partial is only executed when the partial is loaded the first time. Subsequent render :partial =.. it does not execute. -RVince

[Rails] Re: Javascript with select in partial

2009-08-31 Thread RVince
is being executed } doReset(); /script In my ChannelsController I call it with: def resetchannelnotes current_associate.update_attributes(:channelnotes = '',:noteson = 0) render :partial = 'channelnotesfield' end But the javascript only gets called when the entire page loads. Thank you -Rvince

[Rails] Re: Javascript with select in partial

2009-08-30 Thread RVince
Yes but I need to know how to call it.. I would call it onload= in the html options, but it is not loading -- it is rendering a partial. So what is the event call that will have it be called when the partial reloads? -RVince --~--~-~--~~~---~--~~ You received

[Rails] Re: Javascript with select in partial

2009-08-30 Thread RVince
beacuse javascript functions in partial will only execuate when the parent document is onload() -- not the partial itself on subsequent loads of a partial. On Aug 30, 3:04 pm, Hassan Schroeder hassan.schroe...@gmail.com wrote: On Sun, Aug 30, 2009 at 6:46 AM, RVincervinc...@hotmail.com wrote:

[Rails] Re: Javascript with select in partial

2009-08-30 Thread RVince
Hassan, How do you mean -- how would you do that? Thanks, -RVince On Aug 30, 5:55 pm, Hassan Schroeder hassan.schroe...@gmail.com wrote: On Sun, Aug 30, 2009 at 2:51 PM, RVincervinc...@hotmail.com wrote: beacuse javascript functions in partial will only execuate when the parent document

[Rails] Javascript with select in partial

2009-08-29 Thread RVince
can I force the javascript function to execuste when I do subsequent render :partial = 'thispartial' Thanks RVince -_thispartial.html.erb- script function doReset(){ document.getElementById(channelnotes).options.selectedIndex = 0; document.getElementById

[Rails] Re: Why can't I post in the JRuby mailing list?

2009-08-28 Thread RVince
://xircles.codehaus.org/manage_email/u...@jruby.codehaus.org -Rvince --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from

[Rails] partials redrawing

2009-08-28 Thread RVince
I render :partial = '_partialInPartial' it is still retaining the previously selected value Is this because it is a partial within a partial? If so, how can I get around this to make certaian a select in a partial is always set to, in effect, un-selected? Thanks, RVince

[Rails] Re: partials redrawing

2009-08-28 Thread RVince
Colin, I think what I am asking is, should a redraw of a partial be the equivalent of a refresh of that partial only? (and if so, would that hold for a partial in a partial, or is that considered bad form in the rails world?) -RVince On Aug 28, 10:56 am, Colin Law clan...@googlemail.com wrote

[Rails] forcing selected item in select

2009-08-27 Thread RVince
= fnKeyUpHandler_A(this, event); return false;, :onKeyPress = return fnKeyPressHandler_A(this, event);, :onChange = fnChangeHandler_A (this, event);, :style = width:350px;,:id= channelnotes}) % Thanks, RVince --~--~-~--~~~---~--~~ You received this message because you

[Rails] partials in innerHTML ?

2009-08-27 Thread RVince
there is a better way? I'm hoping someone here has a suggestionI'm thinking maybe partials (?) but the entire innerhtml is exactly that, just pure html. Surely there has to be a way to accomodate this. Thanks Rvince --~--~-~--~~~---~--~~ You received this message because you

[Rails] link_to_remote parameter

2009-08-26 Thread RVince
].value But that just gives me an error. Can anyone tell me how I can obtain this value in the function I am invoking in my link_to_remote. Thanks, RVince --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails

[Rails] Anything but Aptana

2009-08-25 Thread RVince
to a decent, lightweight IDE. All i want is syntax coloring. I'm thinking notepad++ here. Anyone have a better solutions? Thanks. RVince --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group

[Rails] Re: Anything but Aptana

2009-08-25 Thread RVince
Thanks guys -- may be a dumb q, but... It seems that if you are coding rails, there's little you need/want other than syntax highlighting (and perhaps a means to prettify the code). You really cannot set breakpoints or use an IDE in writing Rails can you? -Rvince

[Rails] Rendered as needed

2009-08-18 Thread RVince
, but rather, to be called and rendered when the link is hit (i.e. minimal transmission to the client) Is there a way I can do this? Thanks, RVince --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group

[Rails] Re: Rendered as needed

2009-08-18 Thread RVince
, :partial =  'example' On Aug 18, 3:46 am, RVince rvinc...@hotmail.com wrote: Is there a way to get a link to a partial to open in a div, which I can open with the prototype .toggle() ? What I want is to put a link on a page, which, when clicked, renders the partial in a div

[Rails] Re: Rendered as needed

2009-08-18 Thread RVince
Thank you so much -- this is exactly the solution I need. -RVince --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com

[Rails] Re: Efficient way to prune a table

2009-08-15 Thread RVince
this and am most grateful to your help! -RVince. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group

[Rails] Re: Help with an App Architecture question

2009-08-15 Thread RVince
/lightbox. And even that may not work. On Aug 15, 3:35 pm, Colin Law clan...@googlemail.com wrote: 2009/8/14 RVince rvinc...@hotmail.com: I have a view that has a swath of innerHTML in it. This innerHTML resides in an HTML table, and it is updated every second by a javascript timer

[Rails] Re: Help with an App Architecture question

2009-08-14 Thread RVince
dont) -Rvince --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails

[Rails] Efficient way to prune a table

2009-08-14 Thread RVince
strings. The issue -- my question -- is how do I keep only the most recent 10 records in the db, efficiently? This issue must be faced by many, and many times over. Rather than try to reinvent the wheel here, can anyone tell me how this sort of thing is typically handled? Thanks, RVince

[Rails] Re: Efficient way to prune a table

2009-08-14 Thread RVince
Simon, Is there a way to do it all in one sql statement? May I ask how you implement this in Ruby/.Rails, say, doing it when something occurs (like login/logout?) Thanks Rvince --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Rails] Re: Efficient way to prune a table

2009-08-14 Thread RVince
the following   on login SearchResults.delete_all(['updated_at ?', 1.week.ago]) Cheers Simon On Fri, 14 Aug 2009 20:15:20 +0800, RVince rvinc...@hotmail.com wrote: Simon, Is there a way to do it all in one sql statement? May I ask how you implement this in Ruby/.Rails, say, doing it when

[Rails] Re: Efficient way to prune a table

2009-08-14 Thread RVince
Hmmm, I think that just throwing out records older than week wont work for me -- I need to keep, say, 5 or 10 of them. How can I specify this? THanks -Rvince --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby

[Rails] Re: Efficient way to prune a table

2009-08-14 Thread RVince
Yes, but I still need to pare down he table size periodically to the N most recent records --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to

[Rails] Re: Help with an App Architecture question

2009-08-14 Thread RVince
Fred, I must not be understanding you correctly. I would still need to put an entire form inside a hidden div for each row, and do the whole thing in the hidden html -- which is what I am trying to avoid doing. But I may not be understand you correctly?

  1   2   >