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
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
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
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:
)
)
)
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
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
, 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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?
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
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
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
...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 %
%=
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
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
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
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
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
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
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
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
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
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
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
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
, 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
? 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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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,
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
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
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
/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
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
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
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?
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
/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
'
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
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
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
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
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:
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
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
://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
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
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
=
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
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
].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
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
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
, 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
, :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
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
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
/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
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
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
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
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
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
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
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 - 100 of 105 matches
Mail list logo