Displaying 20 results from an estimated 500 matches similar to: "Grouping arrays in the View"
2006 Aug 03
5
Multiple Loading events in form_remote_for
Is it possible to have multiple loading events in the params for
form_remote_for?
I''d like to do this :loading => "Element.show(''form-indicator'') and
this :loading => "Element.hide(btn-submit'')
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Jun 21
3
Simple range question
I have a model with a datetime field called start_date. I''d like to do
a find on the model so that it returns only records with the start_date
equal to the current day.
Something like this:
@foos = Foo.find(:all,
:conditions => //?? start_date equal to today''s date
??// ] )
Thanks in advance for any help.
-------------- next part
2006 Aug 10
2
search acts_as_taggable for multiple tags
Hey...I''m trying to search a Model that uses acts_as_taggable for multiple tags. I''d like to pass in a search string containing a space delimited tags names (i.e. "tag1 tag2") and return the objects that have been tagged by either one of those. Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Jul 11
18
Zip Code Ranges
Does anyone have any recommendations for working with zip code distance
ranges? I need to calculate the distances between US zip codes.
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060711/f133d7de/attachment-0001.html
2006 May 18
7
Ruby Before Rails
As I, like many people, are coming to ruby in the rails era, I''m curious
about how Ruby Web Dev was done prior to rails. Any veterans want to
share their insights?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060518/20cde24d/attachment.html
2006 Jul 12
2
37 Signals - Music
So I''ve heard the 37 signals guys mostly work from home - but when
you''re in the office, do you guys listen to music? If so - what kind of
stuff do you play?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060712/14e7f63c/attachment.html
2006 Jul 24
1
Dev Web Server Setup Suggestions?
I inherited a PC that I''m turning into a *NIX web server for in house
development. Its primary purpose would be for staging, before apps were
released to a shared-hosting environment. I''m probably going to setup
Apache 1.3/FastCGI to match where the site is currently hosted. I
develop in Windows, but I really want to get more familiar with the
command-line linux environment.
2006 Jul 31
3
Missing controller default code
Hello,
I generated a controller, using the command:
ruby script/generate controller my_kontroller my_model
The generated controller file, however, contains an empty class
definition. The default controller code is missing.
Any idea what went wrong?
Thanks,
gk
--
Posted via http://www.ruby-forum.com/.
2006 Jul 31
9
Multiple Pagination
I have the following:
def index
begin
@restaurant_pages, @restaurants = paginate :restaurants,
:order => (params[
:sort ] || "name"),
:per_page => 2
@cuisines = Cuisine.find_all
rescue
redirect_to :action => :index
end
end
# sort by cuisine
def
2006 May 27
36
Might be buying a Mac
I might be buying a Mac tomorrow. I checked out the new 13.3in MacBook at the new Apple Store on 5th ave in NYC. I''m torn between the smaller MacBook and the MacBook Pro. We have a pro at work and I''m not that thrilled with the way it feels. I like the keyboard much better on the 13inch. However, I think doing development on that small of a screen could get frustrating. Any
2006 May 19
37
OS for rails development: Windows vs. Mac?
Caveat: this is not a discussion about *hosting* a rails app on windows.
Anyway...Macs are everywhere you look when researching rails (demo vids,
tutorials, and pictures from rails training classes). I''m interested in
what the pros to using a Mac for rails development are (besides
textmate). Is it more of a cultural thing, a what would 37 signals do
thing, is it a unix thing, or
2006 Aug 01
2
Date length in english plugin/built in?
Is there a plugin or built in function for converting a date interval
into the English equivalent? For example, "So and so posted this 45
minutes ago".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060801/e33b04d1/attachment.html
2006 Apr 24
0
ImageMagick and EXIF Data
Hi there,
I''m writing a little application that parses an image file and extracts the
camera settings from the file (the EXIF data) and saves all the fields to
the database. The idea is that after awhile people will be able to search
based on camera make, model, lens settings, etc... and all the pictures that
meet those requirements will be displayed. The picture is stored on the file
2005 Oct 18
3
hand writing sql for eager loading of thumbnails
Can anyone point me to a resource for hand coding some sql so I can create my
own for the following models:
I''m using single table inheritance to store related objects eg:
Thumbnail < Image < File :: ActiveRecord:Base
Image
has_many thumbnails
Thumbnail
has_one image
When I come to list thumbnails I''d like to be able to:
1. List all images relating to a product
2.
2006 Jun 07
1
Site5 Hosting: Defautl Root Directory for site
Just signed up for hosting with Site5. So far the service has been
great, but one question I had couldn''t be answered by the tech support.
I need to change the default root directory of my site from public_html
to a rails directory (i.e. foo/app/public). The tech support suggested
mod_rewrite. Any other suggestions on ways to accomplish this?
Thanks,
Nathan
-------------- next
2006 May 23
1
Ruby on Rails: Up and Running: Rough Cuts Version
Anyone read the rough cuts of this book? I''m interested in checking it
out because Bruce Tate''s work is always great. How does it compare to
the agile books (2nd edition) in terms of timeliness, difficulty, etc.
Thanks!
Nathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 May 26
1
Form for Multiple Models
I have a signup form that needs to do these three things:
1) create a new "Group"
2) create a new "User"
3) Add that User to the Group
I have the scaffolding for the create new user form:
<% form_for :user do |form| %>
<p>
<label for="user_name">First Name:</label>
<%= form.text_field
2006 Aug 07
3
Acts_as_taggable / Rails Recipes bug?
I''m following the acts_as_taggable chapter from the Rails Recipes book.
I want my view form to have a text_field that correlates to an attribute
in the Model that accepts a string of space delimited tags. The book
uses tag-_list, but from what I can tell this attribute can''t be written
to. I''ve added this to the plugin code itself - am I missing something,
is there a
2015 Aug 04
4
Working Documentation Toolchain [GSoC]
Hi,
The basic toolchain is up and running. I encourage community to test
this workflow once. It is an addition to the existing contributing
mediums.
Site: http://clown-olga-13325.bitballoon.com/
Contributing Docs repo : https://github.com/kunaaljain/test-centos-docs
==AIM==
Initial Idea : http://wiki.centos.org/GSoC/2015/Ideas#docs-toolchain
The CentOS Project needs more short-form
2017 Feb 23
2
contar elementos
buen día colegas:
resulta que hace unos años hice un programa para hacer regresiones lineales pero los datos venían en esta forma:
tiempo degradacion elemento1 9204 14 10306 15 9860 16 11803 17 12211 18 11333 19 13490 126 12329 229 13325 230 13214 231 13645 232 14492 233 14570 234 14777 20 4187 33 5607 34 5803 35 5997 36 5529 37 5716 38 6164 325 15451 428 19062 429 17753 430 20465 431 20966 432