in_groups and in_groups_of
part of rails api - hadn't spotted those before and would never have
thought of looking for them.
I often wonder how many other useful little goodies I may be missing.
Always useful to keep an eye on this group.
thanks Marnen
--
You received this message because
So it would seem that there is huge level of subtly in how these path helpers
behave based on how your pluralize the helper. So, what I should have written
(and what now appears to work) was:
%= form_for @thread, :as = :thread, :url = thread_message_path(@thread,
@message) do |f| %
So that's
Hi,
I have 2 models: User and Article.
I have this relationship:
* User has many articles (and Article belongs to user)
* User has and belongs to many articles (and Article habtm users)
But this is tricky because of: current_user.articles ...this can return
articles thanks to *has_many* and
Hi,
I ve got a question concerning delete actions in the new rails 3 world
with unobtrusive javascript.
How may I perform an ajax delete in a list of products.
if attribute data-method is specified rails.js handleMethod is
called,
which adds csrf params into a hidden form and form.submit is
On Sun, May 30, 2010 at 10:42 PM, dave4...@greatchiro.com
dave.hurr...@gmail.com wrote:
Does Rails 3.0.0 beta3 work with ruby 1.9.1 on Windows XP?
It does not work for me, the sample program crashes with no error
message.
Dave, the recommended Ruby version for Rails 3.0 Beta 3 is Ruby
Put this in the model:
HUMAN_ATTRIBUTES = {:some_column = 'Column display
name', :some_other_column = 'Another column display name'}
def self.human_attribute_name(attr)
HUMAN_ATTRIBUTES[attr.to_sym] || super
end
Obviously you want to replace my examples (:some_column, 'Column
display name',
On May 31, 6:25 am, Bob Smith bsm...@gmail.com wrote:
I have a list of people I am using as the collection for a
render :partial. This is for a list of users that is being made into a
pdf. I need to do 3 find calls to find out their attendance for the
last 3 years. The only way I can find to
On May 31, 8:49 am, David B. li...@ruby-forum.com wrote:
Hi,
But this is tricky because of: current_user.articles ...this can return
articles thanks to *has_many* and *has_and_belongs_to* relations. So
there's a collision.
How can I ask articles thanks has_and_belongs_to explicitly.
On 31 May 2010 07:16, tonypm tonypmar...@hotmail.com wrote:
I often wonder how many other useful little goodies I may be missing.
The have a page through the API docs... it's all in there!
There's interesting stuff in both the Ruby [1] and Rails [2] APIs.
You'll learn loads from looking through
Frederick Cheung wrote:
On May 31, 8:49�am, David B. li...@ruby-forum.com wrote:
Call one of the relationships something else, eg
has_many :something_articles, :class_name = Article
Fred
Thank you Fred
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you
Hi,
thank you for reading my post. When I went trough my logs last time, I
noticed that ActiveRecord calls the validate() method of one of my
models multiple times. The concerned model acts like a linked list (no
plug-in) and references itself. The validate() method is not only
called twice, but
Hi Guys
I am starting a new thread as it seems my gripe isnt to do with
Juggernaut but with TCPSocket - which is used by Juggernaut.
Turns out that the thing that actually hangs up in Juggernaut after x
(130/1500/16000) iterations of
(1..1000).each {|i| Juggernaut.show_clients}
Is actually the
Basically, if i open an txt file in firefox using File Open file
then file is opening perfectly. But if i try to open a txt file from a
file link on a webpage file:///path it is not going anywhere?
Can i fix that in ROR ? If i can, then what is the way to get rid of
this ?
--
Posted via
Hi,
I've got a 7-liner:
require 'rubygems'
require 'breakpoint'
a = 'aaa'
b = 'bbb'
breakpoint
c = 'ccc'
In a Command window, I've got:
K:\_Projects\Ruby\_Ruby_Tests\TestBreakpointruby TestBreakpoint.rb
Executing break point at TestBreakpoint.rb:9
irb(main):001:0 local_variables
= [id, block,
On Mon, May 31, 2010 at 6:07 AM, Hemant Bhargava li...@ruby-forum.com wrote:
Basically, if i open an txt file in firefox using File Open file
then file is opening perfectly. But if i try to open a txt file from a
file link on a webpage file:///path it is not going anywhere?
? What *exactly*
Hassan Schroeder wrote:
On Mon, May 31, 2010 at 6:07 AM, Hemant Bhargava li...@ruby-forum.com
wrote:
Basically, if i open an txt file in firefox using File Open file
then file is opening perfectly. But if i try to open a txt file from a
file link on a webpage file:///path it is not going
I'm lost. What does this have to do with rails? Sounds like a browser
problem. :-/
Larry
--
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
Hi all
I am currently looking for any ROR sample applciation used for training.
I am in the processes of collecting requirements/analyzing/designing a
web site that will provide training
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the
I seem to be getting 2 errors,
Attachment_fu properties are not set
S3 is complaining ( Im not using it)
S3:
Processing ApplicationController#index (for 127.0.0.1 at 2010-05-31
16:49:10) [GET]
NameError (undefined local variable or method `attachment_options' for
#Class:0x105870a40):
Hi Pepe,
Do you want to collaborate with open source projects?
Regards
2010/5/31 Pepe Sanchez li...@ruby-forum.com:
Hi all
I am currently looking for any ROR sample applciation used for training.
I am in the processes of collecting requirements/analyzing/designing a
web site that will
On Mon, May 31, 2010 at 7:16 AM, Hemant Bhargava li...@ruby-forum.com wrote:
Basically, if i open an txt file in firefox using File Open file
then file is opening perfectly. But if i try to open a txt file from a
file link on a webpage file:///path it is not going anywhere?
By this i mean
I'm a recent convert to Rails and I'm working on a new project using Rails 2.3
(I'll probably upgrade at some point when Rails 3 is in production and had a
chance to bake the .0 bugs out). I'm going to use Redis anyway for caching
important data, so I thought I'd use the redis-store:
I am struggling with time zone support in Rails 3 beta and I would
like to know if it is a bug or if I am doing something wrong. He is
the problem:
Time.zone = 'Madrid' # it is GMT+2
= Madrid
c = Comment.new
= #Comment id: nil, title: , pub_at: nil
c.pub_at = Time.zone.parse('10:00:00')
=
On May 31, 11:50 am, ms m...@tzi.de wrote:
Hi,
thank you for reading my post. When I went trough my logs last time, I
noticed that ActiveRecord calls the validate() method of one of my
models multiple times. The concerned model acts like a linked list (no
plug-in) and references itself.
I started with the ckeditor rails demo and everything worked
beautifully.
Then I deployed a couple of sites using a heavily customized Easy
toolbar and everything works great. In these instances I completely
disable any file upload or management capability.
Next, I implemented the Full version
Sure!!
Sure!!!
tramuntanal wrote:
Hi Pepe,
Do you want to collaborate with open source projects?
Regards
2010/5/31 Pepe Sanchez li...@ruby-forum.com:
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to
Hi again,
Here's a Scrum management tool at version 0.9:
http://sourceforge.net/projects/windsofscrum/
It's based on Henrik Kniberg's book Scrum and XP from the Trenches
available at InfoQ.
Maybe you can collect requirements/analyze/design new cool features.
Take a look at it and contact me, you
Bump?! Please, can anyone help?
On 30 May, 09:16, Joe j...@dev-hq.co.uk wrote:
Hi,
Basically I recently been playing around with my ruby on rails system,
and I'm wondering how I can get it to pick some words from the :name
of the tutorial (I have a system with categories and tutorials) and
Hello,
What is the 2010 way to get my non-rails gems frozen into my app?
TIA!
a.
--
Posted via http://www.ruby-forum.com/.
--
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
Hassan Schroeder wrote:
On Mon, May 31, 2010 at 7:16 AM, Hemant Bhargava li...@ruby-forum.com
wrote:
Basically, if i open an txt file in firefox using File Open file
then file is opening perfectly. But if i try to open a txt file from a
file link on a webpage file:///path it is not going
Agile Web Development with Rails, Edition 4
http://intertwingly.net/projects/AWDwR4/checkdepot/index.html
--
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
Adam Ms. wrote:
Hello,
What is the 2010 way to get my non-rails gems frozen into my app?
rake gems:unpack , for Rails 2.x. Rails 3 uses Bundler.
TIA!
a.
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org
--
Posted via http://www.ruby-forum.com/.
--
You received
RichardOnRails wrote:
Hi,
I've got a 7-liner:
require 'rubygems'
require 'breakpoint'
a = 'aaa'
b = 'bbb'
breakpoint
c = 'ccc'
In a Command window, I've got:
K:\_Projects\Ruby\_Ruby_Tests\TestBreakpointruby TestBreakpoint.rb
Executing break point at TestBreakpoint.rb:9
Hi,
I am developping a little chat application with rails. On my chat page I
make ajax request every 10 seconds to check if there are news messages.
I think if I keep this thing with a lot of user my performance will get
really low.
How can I improve this? Is is possible to observe when a row is
You might have a look at node.js - I've heard recently of apps which combine
node.js w/ redis pubsub to get a pretty nifty quick experience w/ no
polling. From a scalability and performance point of view, this has a
couple of drawbacks - susceptible to network latencies, quality (may be
better
no scheduler solution:
why not use created_at or updated_at?
simply get current date than compute days since your prefered event and make
it half...
On Sun, May 30, 2010 at 6:26 PM, Becky Russoniello li...@ruby-forum.comwrote:
Wow! Perfect. Thank you so much.
Sharagoz wrote:
I would
Greg Ma wrote:
Hi,
I am developping a little chat application with rails. On my chat page I
make ajax request every 10 seconds to check if there are news messages.
I think if I keep this thing with a lot of user my performance will get
really low.
It shouldn't if you structure your queries
Ned Pearson wrote:
I started with the ckeditor rails demo and everything worked
beautifully.
Then I deployed a couple of sites using a heavily customized Easy
toolbar and everything works great. In these instances I completely
disable any file upload or management capability.
Next, I
Geez, Marnen,
I don't see why people on a list focused on the most famous Ruby app
would view it beneath themselves to address a fundamental Ruby
question.
Incidentally, my question is, in fact, related to a Rails - a Rails
application. My client for the Rails app wants to change a bunch of
RichardOnRails wrote:
Geez, Marnen,
I don't see why people on a list focused on the most famous Ruby app
would view it beneath themselves to address a fundamental Ruby
question.
It's not that they see it as beneath themselves. It's simply that
this is a forum for Rails issues, and only
A very puzzling thing has happened. Any ideas on this?
I have two rates for this service I provide.
5 cents per line
10 cents per line
I updated the latter to 20 cents per line, and made other changes
to my site. I use a constant for the rate so I did this:
EXEC_RATE = 20 // used to be,
// is not a ruby comment
Change it to # and see what happens.
(Sorry for top-posting - mobile phone has awful email client)
On May 31, 2010 9:31 PM, minka beesupp...@beelucid.com wrote:
A very puzzling thing has happened. Any ideas on this?
I have two rates for this service I provide.
5
Thanks for the feedback, actually the line is
EXEC_RATE = 20 # cents per line, convert and exec
So that could not be it.
I have also checked in my IDE, and the new value is showing up
in my local development environment.
The new value is on the production machine, in the production code.
BUT
On 31 May 2010 21:55, minka beesupp...@beelucid.com wrote:
Thanks for the feedback, actually the line is
EXEC_RATE = 20 # cents per line, convert and exec
So that could not be it.
I have also checked in my IDE, and the new value is showing up
in my local development environment.
The new
Paul A. wrote:
Hi,
I have an ActiveRecord model Group and a YAML table stored in
config/users.yaml just like:
- {login: titi, password: 123456, group_id: 2}
- {login: toto, password: 987654, group_id: 7}
And I would like to link them by a sexy way. Can you help me?
I would
Marnen Laibow-Koser wrote:
This will probably be easier in Rails 3, but not impossible in Rails 2.
Which are you using?
Thank for your quick answer. I'm using Rails 3 :p
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
Hmm, http://github.com/zilkey/active_hash looks very cool. And Rails 3
ready. But it do not allow habtm relations :s
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send
Hi all,
I want to be able to display 404 page from a controller when a record
in the database can not be found. I am using Rails 3 at the moment. I
tried to find how to do this on guides.rails.info with no luck. Can
anybody recommend the best approach to do this?
Thanks heaps for your help and
Hey Guys.
I'm very new with rails and I've been building a CMS application
backend.
All is going well, but I would like to know if this is possible?
Basically I have two models:
@page { id, name, number }
@extended_page { id, page_id, description, image }
The idea is that there are bunch of
Is there a way to obtain the response body of the last render in
Rails3 beta3?
For example, given:
render :action='aaa', :layout='bbb'
I had thought something like @_current_render would work but it did
not, it is nil.
--
You received this message because you are subscribed to the Google
Quoting Joshua Partogi joshua.part...@gmail.com:
Hi all,
I want to be able to display 404 page from a controller when a record
in the database can not be found. I am using Rails 3 at the moment. I
tried to find how to do this on guides.rails.info with no luck. Can
anybody recommend the
That's the ticket! Thank you. a.
--
Posted via http://www.ruby-forum.com/.
--
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
Hi,
I need to create a Active directory authentication on linux machine
using ruby on rails.
Can anybody have any idea please?
Regards,
Periyasamy.R
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk
53 matches
Mail list logo