I think you might find Richard White''s AjaxScaffold a good starting
point.
More details on his blog: http://www.height1percent.com
It gives you the typical Rails CRUD in a slick Ajax interface.
On May 11, 2006, at 9:28 AM, rails-request@lists.rubyonrails.org wrote:
> Send Rails mailing list submissions to
> rails@lists.rubyonrails.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.rubyonrails.org/mailman/listinfo/rails
> or, via email, send a message with subject or body ''help''
to
> rails-request@lists.rubyonrails.org
>
> You can reach the person managing the list at
> rails-owner@lists.rubyonrails.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Rails digest..."
>
>
> Today''s Topics:
>
> 1. I18N current best solution (was: no one cares about i18n)
> (Martin Bernd Schmeil)
> 2. Re: How do you log from within your custom class? (Hammed Malik)
> 3. Re: Rails in Dr. Dobbs Journal ? (Ben Munat)
> 4. Re: pages in /public cant find CSS (Bob Hutchison)
> 5. Adding user name to production log? (Greg Freemyer)
> 6. Re: Re: crating a ajax datagrid (Peter De Berdt)
> 7. Re: Re: crating a ajax datagrid (John Ivanoff)
> 8. Re: /public content security (Mathias Wittlock)
> 9. Re: Adding user name to production log? (Bob Hutchison)
> 10. Re: Adding user name to production log? (njmacinnes@gmail.com)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 11 May 2006 18:03:34 +0200
> From: Martin Bernd Schmeil <bschmeil@autoscout24.com>
> Subject: [Rails] I18N current best solution (was: no one cares about
> i18n)
> To: rails@lists.rubyonrails.org
> Message-ID: <7ca3564a5a7b1f40cb7ecae45e1cdcd7@ruby-forum.com>
> Content-Type: text/plain; charset=utf-8
>
> In http://wiki.rubyonrails.com/rails/pages/RailsLocalization
> someone did
> ask *the* question again: What is the current best solution for I18N?
>
> I did add these links to that very same page:
>
> Gloablize (http://wiki.globalize-rails.org/wiki/)
> Localize
> (http://dev.rubyonrails.org/svn/rails/plugins/localization/README)
> GLoc (http://rubyforge.org/projects/gloc/)
> Multilingual
> (https://opensvn.csie.org/traccgi/multi_lingual_rails/trac.cgi/)
>
> A very brief feature comparision for the first three plugins is listed
> here: http://www.agilewebdevelopment.com/plugins/category/8
>
> And then there''s the old important thread from end of last year
> ("Rails
> core going multiligual...ever?"): http://www.ruby-forum.com/topic/184
>
> BTW - Where''s the place to DRY up all this information and keep it
> up to
> date?
>
>
>
>
>
> --
> Posted via http://www.ruby-forum.com/.
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 11 May 2006 11:04:14 -0500
> From: "Hammed Malik" <hammed@gmail.com>
> Subject: Re: [Rails] How do you log from within your custom class?
> To: rails@lists.rubyonrails.org
> Message-ID:
> <5440c2a90605110904h6bcdf597je7a7c10c8728d090@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Try
>
> RAILS_DEFAULT_LOGGER.info
>
> Hammed
>
> On 5/11/06, Chris Richards <evilgeenius@gmail.com> wrote:
>> Hi
>> I know i can use loggger.info("info") to output a message to
the log
>> file from within ActionController classes. HOw do I do it from my
>> own
>> custom class?
>>
>> Thanks
>> Chris
>>
>> --
>> Posted via http://www.ruby-forum.com/.
>> _______________________________________________
>> Rails mailing list
>> Rails@lists.rubyonrails.org
>> http://lists.rubyonrails.org/mailman/listinfo/rails
>>
>
>
> ------------------------------
>
> Message: 3
> Date: Thu, 11 May 2006 09:10:06 -0700
> From: Ben Munat <bent@munat.com>
> Subject: Re: [Rails] Rails in Dr. Dobbs Journal ?
> To: rails@lists.rubyonrails.org
> Message-ID: <446361DE.6030909@munat.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Yep... I''ve got it right here. It''s the June issue, which
I believe
> is the copy they''ll be
> handing out for free to 15,000 java programmers at JavaOne next
> week. :-)
>
> I haven''t had time to read the article yet, but it runs about
three
> pages and has a
> sidebar interview with DHH. Skimming it, it looks like a decent
> introduction to the
> benefits of Ruby and Rails.
>
> b
>
> Jean-Fran?ois wrote:
>> Hi,
>>
>> I''ve read that Dr. Dobbs Journal''s last issue has a
cover article
>> about
>> Rails titled "Ruby On Rails - Java''s Successor?".
Can''t find anything
>> about it in http://www.ddj.com
>>
>> Does someone have the paper edition and can confirm that, and tell
>> how the article looks like, and so on.
>>
>> Thanks,
>>
>> -- Jean-Fran?ois.
>>
>>
>> ---------------------------------------------------------------------
>> ---
>>
>> _______________________________________________
>> Rails mailing list
>> Rails@lists.rubyonrails.org
>> http://lists.rubyonrails.org/mailman/listinfo/rails
>
>
> ------------------------------
>
> Message: 4
> Date: Thu, 11 May 2006 12:11:10 -0400
> From: Bob Hutchison <hutch@recursive.ca>
> Subject: Re: [Rails] pages in /public cant find CSS
> To: rails@lists.rubyonrails.org
> Message-ID: <005BD2CD-BDF7-43F5-863B-A434FA0023CD@recursive.ca>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>
> Hi mat,
>
> On May 10, 2006, at 11:45 PM, mat Cucuzella wrote:
>
>> Hi everyone,
>>
>> I have a rails project that I''ve been serving via WebBrick at
work,
>> and its been working fine (low traffic). For the last few days
I''ve
>> been trying to deploy it under Apache which already serves our groups
>> static and PHP pages. I have the dynamic rails part working now, but
>> am having problems with stylesheet references in static pages. My URL
>> using WebBrick was (and still is for development):
>>
>> http://myhost.com/
>>
>> and now in Apache its below root since docroot has lots of existing
>> stuff:
>>
>> http://myhost.com/auto/
>>
>> which in apache-land points to my rails public directory. The problem
>> is in the static HTML pages in public. They reference CSS files
>> shared
>> with dynamic rails pages in /stylesheets. Under my WebBrick setup
>> this
>> was OK, but under my new Apache setup they are in /auto/stylesheets,
>> so they are not loaded. Is there a good way to make the stylesheets
>> visible in both environments?
>>
>> This seems like it would be a common problem. Are there best
>> practices
>> for handling this situation? Also if anyone wants to comment on
>> ownership/permissions between my UID and under Apache it needing at
>> least r/w permissions to some files and dirs.
>
> To paraphrase what is happening: you''re using absolute urls
(leading
> ''/'') and that these urls fix the location of the page in
question,
> and that the pages are static. If that is correct, then I think you
> need to change to relative urls. Instead of writing
"/stylesheets",
> write "stylesheets".
>
> Hope that helps a bit.
>
> Cheers,
> Bob
>
>>
>> I''m using Rails 1.0 under Linux, RedHat AS 3.0.
>>
>> -mat
>>
>> --
>> Posted via http://www.ruby-forum.com/.
>> _______________________________________________
>> Rails mailing list
>> Rails@lists.rubyonrails.org
>> http://lists.rubyonrails.org/mailman/listinfo/rails
>
> ----
> Bob Hutchison -- blogs at <http://www.recursive.ca/
> hutch/>
> Recursive Design Inc. -- <http://www.recursive.ca/>
> Raconteur -- <http://www.raconteur.info/>
> xampl for Ruby -- <http://rubyforge.org/projects/
> xampl/>
>
>
>
>
>
> ------------------------------
>
> Message: 5
> Date: Thu, 11 May 2006 12:12:04 -0400
> From: "Greg Freemyer" <greg.freemyer@gmail.com>
> Subject: [Rails] Adding user name to production log?
> To: Rails <rails@lists.rubyonrails.org>
> Message-ID:
> <87f94c370605110912y384164c8w5b530c53402286de@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> All,
>
> In the production log I have entries like:
>
> Processing OpportunityController#new (for 68.213.19.251 at 2006-05-11
> 10:18:36) [GET]
> Session ID: 345b455a2a36af8814081c388d8726f1
> Parameters: {"action"=>"new",
"controller"=>"opportunity"}
> Rendering within layouts/opportunity
> Rendering opportunity/new
> Completed in 0.02281 (43 reqs/sec) | Rendering: 0.01585 (69%) | DB:
> 0.00271 (11%) | 200 OK [https://68.213.19.251/opportunity/new]
>
> I would like to add the user''s login name. Is there an easy way
for
> me to extend the above and add it? Obviously I have it in a session
> variable, I just don''t know where to add the log statement.
>
> Greg
> --
> Greg Freemyer
> The Norcross Group
> Forensics for the 21st Century
>
>
> ------------------------------
>
> Message: 6
> Date: Thu, 11 May 2006 18:15:26 +0200
> From: Peter De Berdt <peter.de.berdt@pandora.be>
> Subject: Re: [Rails] Re: crating a ajax datagrid
> To: rails@lists.rubyonrails.org
> Message-ID: <B1F0E128-8B96-476F-B2D2-17381572AE87@pandora.be>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>
>
> On 11 May 2006, at 17:57, Hopeful Skeptic wrote:
>
>> That''s actually pretty nice. I was just talking to someone
about
>> doing
>> tabular data entry using AJAX. The grid in your link looks like it
>> could be slightly modified and used for that very purpose.
>>
>> That would be pretty interesting. It brings you one step closer to
>> replacing a desktop application.
>
> There are some commercial DHTML Datagrids out there already that are
> quite powerful and Rico''s DataGrid also allows you to
asynchronously
> fetch records. However, sometimes (read: most of the time) it''s
just
> better to find a more web-friendly way of showing records, either
> through pagination or by fetching only one or two columns, then let
> them click on a row to bring up a detail view using AJAX. I have an
> application that loads over 2000 records in a table using 1 column
> and it both renders very fast and the time to send it to the user is
> also more than acceptable (the Apache server uses mod_deflate,
> Lighttpd has a similar module).
>
> The Datagrids have some drawbacks, such as the inability to use your
> scrollwheel on the table itself and rather disappointing crossbrowser
> issues.
>
>
>
> ------------------------------
>
> Message: 7
> Date: Thu, 11 May 2006 11:18:54 -0500
> From: "John Ivanoff" <john.ivanoff@gmail.com>
> Subject: Re: [Rails] Re: crating a ajax datagrid
> To: rails@lists.rubyonrails.org
> Message-ID:
> <a52346a30605110918j529cf5f4l3da65de8227a8969@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> like this?
> http://numsum.com/spreadsheet/show/35
>
> not sure what runs it....
>
> On 5/11/06, Hopeful Skeptic <HopefulSkeptic@mailinator.com> wrote:
>> That''s actually pretty nice. I was just talking to someone
about
>> doing
>> tabular data entry using AJAX. The grid in your link looks like it
>> could be slightly modified and used for that very purpose.
>>
>> That would be pretty interesting. It brings you one step closer to
>> replacing a desktop application.
>>
>> --
>> Posted via http://www.ruby-forum.com/.
>> _______________________________________________
>> Rails mailing list
>> Rails@lists.rubyonrails.org
>> http://lists.rubyonrails.org/mailman/listinfo/rails
>>
>
>
> ------------------------------
>
> Message: 8
> Date: Thu, 11 May 2006 18:22:53 +0200
> From: "Mathias Wittlock"
<wittlock+rubyonrailslist@gmail.com>
> Subject: Re: [Rails] /public content security
> To: rails@lists.rubyonrails.org
> Message-ID:
> <5e212ae0605110922rb83fc1ev4212501b45413c8e@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> On 5/11/06, Dorian Lance <loridand@netscape.net> wrote:
>> Hello all,
>>
>> I have a question regarding the security of my new web zine.
>> The
>> idea is that I have editors that can log into the site, and then
>> upload
>> comics in the form of a jpg. The way that I have this set up
>> right now
>> is that the jpg is submitted through a form and then placed into the
>> authors sub directory in public/comics/. The record of the jpg is
>> stored in a pendingcomics table in the database. The
>> administrator has
>> to come in and authorize the comic, which moves the record from the
>> pendingcomics table over to the public_comics table so that it can be
>> viewed by the rest of the world.
>> Now the problem. Is this secure enough? What if one of my
>> editors
>> forgets to log out and someone hi-jacks the account and posts a
>> ton of
>> pron. Now its true that these are not immediately available to the
>> public, however, if someone knows the name of the files that were
>> uploaded, can they be retreived directly from the public/comics/id/
>> directory?
>> One possible solution I thought of was to rename the file
>> uploaded
>> with random jibberish, and simply hide the image from the author
>> untill
>> it is authorized. Please give your thoughts on this.
>>
>> Thanks for any help.
>
> Just a thought, but couldn''t you store them outside /public/ until
> approved? If you are moving them anyway, do you have any perticular
> reason to store them under /public/?
>
> Cheers,
> Mathias.
>
>
> ------------------------------
>
> Message: 9
> Date: Thu, 11 May 2006 12:25:41 -0400
> From: Bob Hutchison <hutch@recursive.ca>
> Subject: Re: [Rails] Adding user name to production log?
> To: rails@lists.rubyonrails.org
> Message-ID: <77C6E88F-32F2-48E1-8654-C8E7535517D3@recursive.ca>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>
>
> On May 11, 2006, at 12:12 PM, Greg Freemyer wrote:
>
>> All,
>>
>> In the production log I have entries like:
>>
>> Processing OpportunityController#new (for 68.213.19.251 at 2006-05-11
>> 10:18:36) [GET]
>> Session ID: 345b455a2a36af8814081c388d8726f1
>> Parameters: {"action"=>"new",
"controller"=>"opportunity"}
>> Rendering within layouts/opportunity
>> Rendering opportunity/new
>> Completed in 0.02281 (43 reqs/sec) | Rendering: 0.01585 (69%) | DB:
>> 0.00271 (11%) | 200 OK [https://68.213.19.251/opportunity/new]
>>
>> I would like to add the user''s login name. Is there an easy
way for
>> me to extend the above and add it? Obviously I have it in a session
>> variable, I just don''t know where to add the log statement.
>
> Coincidentally, I did this the other day from inside an around filter
> by writing something like:
>
> controller.logger.info "blah blah blah"
>
> in the before method.
>
> Don''t know if there''s a better way.
>
> Cheers,
> Bob
>
>>
>> Greg
>> --
>> Greg Freemyer
>> The Norcross Group
>> Forensics for the 21st Century
>> _______________________________________________
>> Rails mailing list
>> Rails@lists.rubyonrails.org
>> http://lists.rubyonrails.org/mailman/listinfo/rails
>
> ----
> Bob Hutchison -- blogs at <http://www.recursive.ca/
> hutch/>
> Recursive Design Inc. -- <http://www.recursive.ca/>
> Raconteur -- <http://www.raconteur.info/>
> xampl for Ruby -- <http://rubyforge.org/projects/
> xampl/>
>
>
>
>
>
> ------------------------------
>
> Message: 10
> Date: Thu, 11 May 2006 17:27:51 +0100
> From: njmacinnes@gmail.com
> Subject: Re: [Rails] Adding user name to production log?
> To: rails@lists.rubyonrails.org
> Message-ID:
> <379b05150605110927v73a9c5a4k66f5a3a9a6cb0024@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> A better way? That''s one very simple line of code. You
can''t get much
> better than that.
> -N
>
> On 11/05/06, Bob Hutchison <hutch@recursive.ca> wrote:
>>
>> On May 11, 2006, at 12:12 PM, Greg Freemyer wrote:
>>
>>> All,
>>>
>>> In the production log I have entries like:
>>>
>>> Processing OpportunityController#new (for 68.213.19.251 at
>>> 2006-05-11
>>> 10:18:36) [GET]
>>> Session ID: 345b455a2a36af8814081c388d8726f1
>>> Parameters: {"action"=>"new",
"controller"=>"opportunity"}
>>> Rendering within layouts/opportunity
>>> Rendering opportunity/new
>>> Completed in 0.02281 (43 reqs/sec) | Rendering: 0.01585 (69%) | DB:
>>> 0.00271 (11%) | 200 OK [https://68.213.19.251/opportunity/new]
>>>
>>> I would like to add the user''s login name. Is there an
easy way for
>>> me to extend the above and add it? Obviously I have it in a
session
>>> variable, I just don''t know where to add the log
statement.
>>
>> Coincidentally, I did this the other day from inside an around filter
>> by writing something like:
>>
>> controller.logger.info "blah blah blah"
>>
>> in the before method.
>>
>> Don''t know if there''s a better way.
>>
>> Cheers,
>> Bob
>>
>>>
>>> Greg
>>> --
>>> Greg Freemyer
>>> The Norcross Group
>>> Forensics for the 21st Century
>>> _______________________________________________
>>> Rails mailing list
>>> Rails@lists.rubyonrails.org
>>> http://lists.rubyonrails.org/mailman/listinfo/rails
>>
>> ----
>> Bob Hutchison -- blogs at <http://www.recursive.ca/
>> hutch/>
>> Recursive Design Inc. -- <http://www.recursive.ca/>
>> Raconteur -- <http://www.raconteur.info/>
>> xampl for Ruby -- <http://rubyforge.org/projects/
>> xampl/>
>>
>>
>>
>> _______________________________________________
>> Rails mailing list
>> Rails@lists.rubyonrails.org
>> http://lists.rubyonrails.org/mailman/listinfo/rails
>>
>
>
> ------------------------------
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
>
> End of Rails Digest, Vol 20, Issue 266
> **************************************
>
>
Guy Argo
CTO, Shopance.com
guy@shopance.com