[Rails] Installing Plugins Offline?

2008-12-29 Thread sa 125
How would I go about installing rails plugins offline? I cannot connect to the web on my work computer, though I have a dedicated internet machine for downloads and such. Thanks -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this

[Rails] Re: acts_as_versioned and rails 2.2.2

2008-12-29 Thread Andrew Timberlake
You can get the latest version of acts_as_versioned from Github at http://github.com/technoweenie/acts_as_versioned which will work with dirty objects in Rails 2.1 and later -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this

[Rails] Re: A CSS issue

2008-12-29 Thread MaD
in addition to everything that has been said already: - get the firefox-plugins firebug and web-developers toolbar. they are very helpful for creating and validating html- and css-code - for internet-explorer to show your css properly try to use padding and margin as little as possible (google

[Rails] Failing to render RJS

2008-12-29 Thread Adam Thorsen
My code looks like the following, but for some reason the rjs template (index.js.erb) is not being rendered. I've also tried naming the rjs file index.js.rjs with no luck. home_controller.rb: def index respond_to do |format| format.js format.html end end index.js.erb: page var

[Rails] Re: 2.2.2 simple_captcha upgrade error

2008-12-29 Thread venkat veerla
how shud we create tooltip in rails application.. Thanks in advance On Mon, Dec 29, 2008 at 11:05 AM, Ryan Bigg radarliste...@gmail.com wrote: Try to install the postgres-pr gem install and use that. - Ryan Bigg Freelancer http://frozenplague.net On 29/12/2008, at 3:48 PM,

[Rails] cannot open ActiveRecord::Migration: No such file

2008-12-29 Thread vishnu
Hi i encounter a problem while running the migration script. ( ie db/migrate/20081229062613_create_posts.rb) . when the command is executed i encounter the following error. cannot open ActiveRecord::Migration: No such file followed by a lot of errors indicating the missing of certain

[Rails] (Jobs): Looking for Ruby on Rails programmers and Testers for Milan, Italy and India projects

2008-12-29 Thread prajeeshpil...@gmail.com
Blackbirds, italian IT consultancy is looking for IT consultants with at least 2 years of experience on framework Ruby on Rails, Python, SQL, Javascript for a project in Milan, Italy and India starting on February 2009. Send the resume to ppil...@blackbirds.it or prajeeshpil...@gmail.com

[Rails] Re: Installing Plugins Offline?

2008-12-29 Thread Frederick Cheung
On Dec 29, 8:28 am, sa 125 rails-mailing-l...@andreas-s.net wrote: How would I go about installing rails plugins offline? I cannot connect to the web on my work computer, though I have a dedicated internet machine for downloads and such. Installing plugins just copies them to

[Rails] Re: A CSS issue

2008-12-29 Thread Jables
Excellent, thanks for all the help 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-talk@googlegroups.com To unsubscribe from this

[Rails] Re: Failing to render RJS

2008-12-29 Thread Frederick Cheung
On 29 Dec 2008, at 08:42, Adam Thorsen wrote: My code looks like the following, but for some reason the rjs template (index.js.erb) is not being rendered. I've also tried naming the rjs file index.js.rjs with no luck. What does the thing making the request look like ?(index.js.erb will

[Rails] Re: Installing Plugins Offline?

2008-12-29 Thread sa 125
I thought so, just wanted to confirm. Thanks! -- 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

[Rails] add an editor on my application

2008-12-29 Thread Johny ben
Does anyone have a good suggestion for the best editor that can I embed on my application.. -- 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

[Rails] Re: A CSS issue

2008-12-29 Thread Fernando Perez
MaD wrote: personallly i use transparent borders instead of padding/margin, when i encounter such a problem. That's an excellent piece of advice, and it is what I also use, but it doesn't work all the time if there is a special background. Another problem are floating elements, try switching

[Rails] Re: Restful authentication refactoring

2008-12-29 Thread Fernando Perez
I also noticed that strange redundancy, and refactored it the same way you did. -- 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

[Rails] Rails Migration Question

2008-12-29 Thread Anil Bhat
Can anyone help me in this: Given the following database migration: class DefineDatabase ActiveRecord::Migration def self.up create_table products do |t| t.column name, :string t.column price_converted, :integer # NOTE: we shouldn't store monetary values

[Rails] Re: Rails Migration Question

2008-12-29 Thread MaD
instead of just looking for someone that is willing to implement your models and methods, why don't you just give it a try first and ask if you encounter any problems? start by defining the relations between models (has_many, belongs_to, ...). add callbacks (after_save :convert_price) and

[Rails] Re: Newbie Join-Model Misery

2008-12-29 Thread Ad Richards
Perfect! Works like a charm! A big thanks to all! If anyone is interested the finished app can be downloaded from: http://github.com/aglasspool/rubygrade/tree/master or there is an online demo at http://rubygrade.heroku.com Thanks again! -- Posted via http://www.ruby-forum.com/.

[Rails] Re: Your thoughts on Enterprise Rails

2008-12-29 Thread Martin
Hello Wayne, Wayne Molina schrieb: for example if my application contains 2 major parts (say a Blog application and a Network application), Rails just smushes them both together under the app directory, and their models/views/controllers are all kept together instead of being

[Rails] Re: RailsXls Plugin Not Working

2008-12-29 Thread karthik
I Used Spreadsheet-excel gem to generate excel reports.The problem of dependencies is not there.It worked perfectly fine But anyway i want to know Why RailsXLS Plugin Not worked On Dec 27, 8:15 pm, karthik karthikeyanr2...@gmail.com wrote: Hi, I am using RailsXls Plugin to generate Excel

[Rails] Preventing a form from submitting on ENTER

2008-12-29 Thread sa 125
Hi - I have the following problem: my app has a form that acts as a filter to a table on the page, so that the user can search any value in the table (via text box) or use select lists for more specific search. The form is being observed by an observe_form helper that runs every 1-2 seconds or

[Rails] Dont cache a variable in action

2008-12-29 Thread Ankit Parekh
Hi I m facing a unique problem. I have a method which i m caching through caches_action but in that i have one variable which i dont want to cache.. To be specific i m using paging and if i cache the page my pagination stops. I m using custom pagination method. Can ne one tell me how to solve

[Rails] Re: NameError: uninitialized constant Digest::SHA2

2008-12-29 Thread karthik
Just try the echo statement and check what it is printing in the model.May be the sha1 will be using Time.now function also in addtion to its own coding.The time that value is authenticated and the time when u are checking the authentication will be different The solution is if the sha1 is

[Rails] Re: One layout for entire apps

2008-12-29 Thread Joshua Partogi
Thank you all for the responses. I'm going to try it out first. Cheers On Dec 29, 3:27 am, Robby Russell ro...@planetargon.com wrote: On Sun, Dec 28, 2008 at 4:40 AM, Joshua Partogi joshua.j...@gmail.com wrote: Dear all, I am still new in rails, and I realised that in rails each model

[Rails] Re: How to get select_tag value in controller?

2008-12-29 Thread zero0x
I suppose you're using prototype, so you just need to get the value of the select box. $(id-of-the-element).getValue() On 28. Dec., 15:04 h., Zhao Yi rails-mailing-l...@andreas-s.net wrote: Frederick Cheung wrote: You have to tell remote function what to submit, it's not going to guess

[Rails] Re: One layout for entire apps

2008-12-29 Thread zero0x
You can also change the layout by calling layout 'layout' from the controller class. Joshua Partogi napísal(a): Dear all, I am still new in rails, and I realised that in rails each model has its own layout/template located under layouts/ Now my question is, is it possible to have only one

[Rails] Re: Question about partial controllers sub-applicaktions

2008-12-29 Thread Andrius Chamentauskas
http://m.onkey.org/2007/12/9/namespaced-models seems to be talking about same problems. You might wanna read it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send

[Rails] Re: Failing to render RJS

2008-12-29 Thread Andrius Chamentauskas
You need to rename it to index.js.rjs. Check in firebug then if you get response. --~--~-~--~~~---~--~~ 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] Passing a collection to a form partial

2008-12-29 Thread sa 125
I'm trying to create an editable table by rendering a partial containing a form. In the index: table %= render :partial = 'product_edit', :collection = @products % /table In the partial: % form_for :product do |f| % tr td%= f.text_field :name %/td td%= f.select :in_stock,

[Rails] Re: Installing Plugins Offline?

2008-12-29 Thread Robby Russell
On Mon, Dec 29, 2008 at 12:58 AM, Frederick Cheung frederick.che...@gmail.com wrote: On Dec 29, 8:28 am, sa 125 rails-mailing-l...@andreas-s.net wrote: How would I go about installing rails plugins offline? I cannot connect to the web on my work computer, though I have a dedicated internet

[Rails] Re: Passing a collection to a form partial

2008-12-29 Thread Franz Strebel
On Mon, Dec 29, 2008 at 2:37 PM, sa 125 rails-mailing-l...@andreas-s.net wrote: I'm trying to create an editable table by rendering a partial containing a form. In the index: table %= render :partial = 'product_edit', :collection = @products % /table I'm getting an error 'undefined

[Rails] Re: Preventing a form from submitting on ENTER

2008-12-29 Thread Ivor Paul
How about removing form tags - just have the field and the observe_field this might not be valid html - not sure about that. Ivor On Mon, Dec 29, 2008 at 12:21 PM, sa 125 rails-mailing-l...@andreas-s.netwrote: Hi - I have the following problem: my app has a form that acts as a filter to

Re: [OT] Re: [Rails] Advice on Mac versus PC ?

2008-12-29 Thread Randy Kramer
On Friday 26 December 2008 06:52 am, Peter De Berdt wrote: On 26 Dec 2008, at 12:33, Matt Harrison wrote: I have a HP laptop that is not quite 3 years old. I've downloaded alot of stuff, and the machine seems to run alot slower than it used to. It takes along time to boot, and it's

[Rails] index = nil params jumbled *sometimes*

2008-12-29 Thread Matt Darby
My app has a timesheet, which is a collection of many TimeCards, based on a Date. I have one user that can create new TimeCards just fine, except on three associated Jobs. Each time he saves he gets a 500 error. Looking at the params, they come across jumbled and my processing method chokes:

[Rails] Re: Passing a collection to a form partial

2008-12-29 Thread sa 125
right.. thanks. -- 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-talk@googlegroups.com To

[Rails] expires_in with fragment-caching

2008-12-29 Thread sigma
Hi all Is it posible do have a expires_in with fragment-caching? Does this work with memcached? Thank you for your aswers! Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post

[Rails] Re: A CSS issue

2008-12-29 Thread John Ivanoff
Box models here's a handy IE toolbar -- Internet Explorer Developer Toolbar http://www.microsoft.com/downloadS/details.aspx?familyid=E59C3964-672D-4511-BB3E-2D5E1DB91038displaylang=en I don't consider myself a guru. In looking at your CSS there could

[Rails] Re: Your thoughts on Enterprise Rails

2008-12-29 Thread Wayne M
Basically from reading the book, Dan doesn't believe in the Rails Way because he hints that it lends itself to quick and dirty code; not dirty in the sense of old PHP/ASP code, but dirty in that it doesn't care about scalability from the start but as an afterthought. Although his book does seem

[Rails] Re: index = nil params jumbled *sometimes*

2008-12-29 Thread MaD
did you check if it is rendered correctly? whats your html output for that code? --~--~-~--~~~---~--~~ 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: index = nil params jumbled *sometimes*

2008-12-29 Thread Matt Darby
On Dec 29, 9:50 am, MaD mayer.domi...@gmail.com wrote: did you check if it is rendered correctly? whats your html output for that code? Yep, it renders correctly (below); as noted, it works for all but one user... tr class='entry' input id=time_cards__time_card_date name=time_cards[]

[Rails] Re: Finding Child Records Efficiently

2008-12-29 Thread DAZ
On Dec 28, 8:07 pm, Mark Reginald James m...@bigpond.net.au wrote: One alternative is to make the ancestor array a string key to each record (abe|homer|bart), allowing instant retrieval. This seems like a relatively good idea, could have a string-key called family_tree or something and just

[Rails] Re: index = nil params jumbled *sometimes*

2008-12-29 Thread MaD
as rendering the view seems ok, i suppose it has something to do with the logic behind it. stating the obvious so far your posted params show, that your controller receives the second entry as first parameter, the first entry gets split by the third, which is not yet saved or the id got lost.

[Rails] Re: add an editor on my application

2008-12-29 Thread Ivor Paul
Hi I have limited experience with FCKEditor -- http://www.fckeditor.net/ and slightly more exp with tinymce -- http://tinymce.moxiecode.com/ but in my experience the better solution is to use textile - http://redcloth.org/ http://wiki.rubyonrails.org/rails/pages/RedClothsince they are simpler

[Rails] Re: Your thoughts on Enterprise Rails

2008-12-29 Thread Kevin Skoglund
Firstly, he advocates you organize your application deeper than the   default Rails skeleton; for example he says to put all of your models   under a physical directory (e.g. app/models/physical) and to   separate them by module (e.g. Physical::Projects::Project). I would agree that

[Rails] SQL tool

2008-12-29 Thread David Nguyen
Hi, I'm looking for a tools under windows that can draw a SQL map using a sql file and ruby convention. So relations are kept and I can get a nice gif or jpeg file with my DB schema. Thanks :-) -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You

[Rails] Re: index = nil params jumbled *sometimes*

2008-12-29 Thread Matt Darby
honestly: this seems strange. some points to start looking for an answer: - are you able to reproduce the error, if you login as that user? - what about that user? does he have any 'special qualities' (like: has special rights or uses lynx to access the site *g*)? - does your session

[Rails] Re: index = nil params jumbled *sometimes*

2008-12-29 Thread MaD
- If I login as the user, I can't seem to reproduce the error, but this happens constantly for this one guy, on these three Jobs. Ugh. this sucks. but i think as long as you can't reproduce the error, you porbably won't be able to fix it. --~--~-~--~~~---~--~~

[Rails] Re: expires_in with fragment-caching

2008-12-29 Thread gautam chekuri
Chris, 1. If you are running rails 2.1 memcached then you can do this in fragment caching: % cache(key, :expires_in = 5.minutes) do % hello, world! % end % - Gautam On Dec 29, 7:18 pm, sigma christoph.thom...@gmail.com wrote: Hi all Is it posible do have a expires_in with

[Rails] Re: expires_in with fragment-caching

2008-12-29 Thread gautam chekuri
If you are using rails 2.1 memcached, then you can do this : % cache(key, :expires_in = 5.minutes) do % hello, world % end % On Dec 29, 7:18 pm, sigma christoph.thom...@gmail.com wrote: Hi all Is it posible do have a expires_in with fragment-caching? Does this work with memcached?

[Rails] Re: 2.2.2 simple_captcha upgrade error

2008-12-29 Thread Andrew Bloom
I asked my boss what gem it was he determined we need to be on, he claims pr, so I tried to install it and it fails to compile, so now im back to square one. I really thought I had this all sorted out a few weeks ago, maybe it was on a different computer. On Dec 28, 11:18 pm, Andrew Bloom

[Rails] Re: Preventing a form from submitting on ENTER

2008-12-29 Thread Robert Walker
Ivor Paul wrote: How about removing form tags - just have the field and the observe_field this might not be valid html - not sure about that. ?xml version=1.0 encoding=UTF-8? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.1//EN http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd; html

[Rails] ApplicationController: understanding generate scaffold

2008-12-29 Thread Sarah Allen
I'm new to Rails and I'm trying to understand the code created by generate scaffold. I'm using Rails 2.2.2. $ ./script/generate scaffold Task description:string generated the following code in app/controller/tasks_controller.rb class TasksController ApplicationController # GET /tasks #

[Rails] Re: will_paginate working in the opposite way expected

2008-12-29 Thread Fernando Perez
Frederick Cheung wrote: On 27 Dec 2008, at 18:38, Fernando Perez wrote: could I be doing wrong? As in Next fetches older posts ? If so you're not doing anything wrong. While you may thing of next as more recents posts, will_paginate only cares about it being the next page. You can tell

[Rails] Re: ApplicationController: understanding generate scaffold

2008-12-29 Thread Freddy Andersen
The respond_to block is optional, and if the block is missing rails will execute a render :task so for the edit task it will look for the / controller/edit.html.erb file Here is information from the api... http://apidock.com/rails/ActionController/MimeResponds/InstanceMethods/respond_to On

[Rails] attachment_fu and mysql (server has gone away)

2008-12-29 Thread Luca Roma
I have a problem with my hosting hostgator In my site i have a section for photos upload. For manage it i use attachment_fu. In the action of upload i do some simple query. If the file to upload is smaller than 1mb there isnt any problem but if it is bigger than 1 mb about i receive an error:

[Rails] Re: ApplicationController: understanding generate scaffold

2008-12-29 Thread Patrick Doyle
On Mon, Dec 29, 2008 at 12:13 PM, Sarah Allen rails-mailing-l...@andreas-s.net wrote: I'm new to Rails and I'm trying to understand the code created by generate scaffold. I'm using Rails 2.2.2. $ ./script/generate scaffold Task description:string generated the following code in

[Rails] Re: Your thoughts on Enterprise Rails

2008-12-29 Thread Bobnation
While I don't agree with much of what the book seems to be saying ... I'm an opinionated b...@$tard ... there are always things you can learn even from books that don't seem to be the best. I have some really crappy programming/technology books at home, but I could still learn a lot from them

[Rails] Re: add an editor on my application

2008-12-29 Thread Bobnation
+1 for Textile or Markdown (my preference) ... try looking up rdiscount if you want to use Markdown, I'm sure there are better options out there. On Dec 29, 9:11 am, Ivor Paul ivorp...@gmail.com wrote: Hi I have limited experience with FCKEditor --http://www.fckeditor.net/ and slightly more

[Rails] Re: Preventing a form from submitting on ENTER

2008-12-29 Thread James Englert
I believe if you put a textarea in your form, the browser will not submit the form if you hit the enter key. It depends on which browser you are using though. On Mon, Dec 29, 2008 at 11:18 AM, Robert Walker rails-mailing-l...@andreas-s.net wrote: Ivor Paul wrote: How about removing form

[Rails] Re: index = nil params jumbled *sometimes*

2008-12-29 Thread Matt Darby
Anyone else by chance? It really seems like this is a lower level error... --~--~-~--~~~---~--~~ 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] member on has_one or has_many

2008-12-29 Thread Freddy Andersen
Hi, I was wondering if it is possible todo something like this in the routes file: map.namespace(:admin) do |admin| admin.resources :dashboard, :only = [ :index ], :has_one = :something, :member = [ :action = :get ], :has_many = [ :something_else ,:more_something ] end The

[Rails] Re: ApplicationController: understanding generate scaffold

2008-12-29 Thread Sarah Allen
Patrick Doyle wrote: If you look in app/controllers/application.rb, you will find that ApplicationController is a task that you derived from ActionController::Base. You should be able to find documentation about ActionController::Base at http://api.rubyonrails.org/ ah. This solves the

[Rails] Re: ApplicationController: understanding generate scaffold

2008-12-29 Thread Patrick Doyle
On Mon, Dec 29, 2008 at 2:22 PM, Sarah Allen rails-mailing-l...@andreas-s.net wrote: Patrick Doyle wrote: From one newbie to another... Look at the links created in the index view for your tasks controller. With the default scaffold, you should see three links to the right of each

[Rails] Re: Installing Plugins Offline?

2008-12-29 Thread Robert Walker
sa 125 wrote: How would I go about installing rails plugins offline? I cannot connect to the web on my work computer, though I have a dedicated internet machine for downloads and such. This is precisely why I generally prefer gems over plugins, Now that Rails has good support for gem

[Rails] Help with model association

2008-12-29 Thread Petr Ruzicka
Hi, I'm very new to RoR so my question may be bit stupid. I'm trying to create application that could serve as training log. So I have Trainee who goes to a gym. What he/she does is a Workout (and there is a bunch of them in list to choose from). Now there are many Trainees in a gym at a same

[Rails] Avoiding ActiveRecord loading for efficiency with lots of rows

2008-12-29 Thread Greg Brockman
Hello all, This is my first post to this group, so please let me know if there is any protocol I'm supposed to follow that I missed. Anyway, I've been developing a Rails application for handling the registration and score data of a math competition. There is an existing Java applet that we use

[Rails] Re: Your thoughts on Enterprise Rails

2008-12-29 Thread Marnen Laibow-Koser
On Dec 28, 11:46 am, Wayne Molina wayne.mol...@gmail.com wrote: Hello and happy holidays, everyone! I received the book Enterprise Rails by Dan Chak as a Christmas gift   and started reading it; I wanted to gauge the community's thoughts on   this.   I was just looking at the book (© 2009!)

[Rails] Re: 2.2.2 simple_captcha upgrade error

2008-12-29 Thread Richard Schneeman
richard$ gem list ... postgres-pr (0.4.0) ... richard$ sudo gem install postgres-pr Password: Successfully installed postgres-pr-0.5.0 richard$ script/server = Booting Mongrel (use 'script/server webrick' to force WEBrick) = Rails 2.2.2 application starting on http://0.0.0.0:3000 It worked

[Rails] Re: Installing Plugins Offline?

2008-12-29 Thread Marnen Laibow-Koser
On Dec 29, 2:52 pm, Robert Walker rails-mailing-l...@andreas-s.net wrote: sa 125 wrote: How would I go about installing rails plugins offline? I cannot connect to the web on my work computer, though I have a dedicated internet machine for downloads and such. This is precisely why I

[Rails] Re: expires_in with fragment-caching

2008-12-29 Thread Jeffrey L. Taylor
Quoting sigma christoph.thom...@gmail.com: Hi all Is it posible do have a expires_in with fragment-caching? Does this work with memcached? Yes, though memcached is the only mechanism it is already built-in. There is a way that works with the other three mechanisms (I think, I've only

[Rails] Re: SQL tool

2008-12-29 Thread Marnen Laibow-Koser
On Dec 29, 10:29 am, David Nguyen rails-mailing-l...@andreas-s.net wrote: Hi, I'm looking for a tools under windows that can draw a SQL map using a sql file and ruby convention. So relations are kept and I can get a nice gif or jpeg file with my DB schema. Well, if your DB has the foreign

[Rails] Gem version issue prevent server starting

2008-12-29 Thread kevin lee
Hi All, I backed up my rails project and then reinstall Windows due to OS crash. Then I install the latest Ruby, RubyGem, and Rails and copy back the rails project. But now I cannot start the server (ruby script/server). It gives the following message: ./script/../config/boot.rb:26:Warning:

[Rails] Re: Sending SMS Messages From Your Rails Application Usng Cl

2008-12-29 Thread Luke Redpath
Hi Walter, Are you able to successfully send an SMS using the sms command line utility bundled with the gem? Try enabling the library debug mode - you should then be able to see the raw HTTP requests being sent. -- Posted via http://www.ruby-forum.com/.

[Rails] Re: Avoiding ActiveRecord loading for efficiency with lots of rows

2008-12-29 Thread Jeffrey L. Taylor
Quoting Greg Brockman gregory.brock...@gmail.com: Hello all, This is my first post to this group, so please let me know if there is any protocol I'm supposed to follow that I missed. Anyway, I've been developing a Rails application for handling the registration and score data of a math

[Rails] Re: Finding Child Records Efficiently

2008-12-29 Thread Robert Walker
DAZ wrote: On Dec 28, 8:07�pm, Mark Reginald James m...@bigpond.net.au wrote: One alternative is to make the ancestor array a string key to each record (abe|homer|bart), allowing instant retrieval. This seems like a relatively good idea, could have a string-key called family_tree or

[Rails] Re: Installing Plugins Offline?

2008-12-29 Thread Robert Walker
Marnen Laibow-Koser wrote: On Dec 29, 2:52�pm, Robert Walker rails-mailing-l...@andreas-s.net wrote: sa 125 wrote: How would I go about installing rails plugins offline? I cannot connect to the web on my work computer, though I have a dedicated internet machine for downloads and such.

[Rails] AJAX select box dropdown update form

2008-12-29 Thread Allen Walker
I have the following form with 2 selectbox drop downs: SelectBox1 SelectBox2 WHen the user changes the selection in SelectBox1, I want SelectBox2 to be updated to contain a different set of options. I'm not sure exactly how to do this. If someone could point me in the right direction, I'd

[Rails] Re: index = nil params jumbled *sometimes*

2008-12-29 Thread Mark Reginald James
Matt Darby wrote: tr class='entry' input id=time_cards__time_card_date name=time_cards[] [time_card_date] type=hidden value=2008-12-28 / input id=time_cards__user_id name=time_cards[][user_id] type=hidden value=121 / input id=time_cards__id name=time_cards[][id] type=hidden / td

[Rails] Re: Finding Child Records Efficiently

2008-12-29 Thread Mark Reginald James
DAZ wrote: On Dec 28, 8:07 pm, Mark Reginald James m...@bigpond.net.au wrote: One alternative is to make the ancestor array a string key to each record (abe|homer|bart), allowing instant retrieval. This seems like a relatively good idea, could have a string-key called family_tree or

[Rails] changing row color on checkbox click

2008-12-29 Thread Scott Kulik
say for example i had something simple like this in a view: tr class=eventd%= check_box_tag(:task) %/td how would i add onclick to change the row color on a check and when the check is removed? maybe something like this? page[task].addClassName('complete') i'm not that familiar with

[Rails] Re: Gem version issue prevent server starting

2008-12-29 Thread Rick
Andreas, RAILS_GEM_VERSION should match the version number of your installed rails. i.e.: on my system, rails --version gives Rails 2.2.2 thus, RAILS_GEM_VERSION = '2.2.2' is correct. 1.3.1 is probably the version of gem you have installed rick On Dec 29, 11:13 am, kevin lee

[Rails] Re: Gem version issue prevent server starting

2008-12-29 Thread Rick
Sorry about the name change Kevin... On Dec 29, 2:42 pm, Rick richard.t.ll...@gmail.com wrote: Andreas, RAILS_GEM_VERSION should match the version number of your installed rails.  i.e.: on my system, rails --version gives Rails 2.2.2 thus, RAILS_GEM_VERSION = '2.2.2' is correct. 1.3.1 is

[Rails] Re: changing row color on checkbox click

2008-12-29 Thread Mark Reginald James
Scott Kulik wrote: say for example i had something simple like this in a view: tr class=eventd%= check_box_tag(:task) %/td how would i add onclick to change the row color on a check and when the check is removed? maybe something like this? page[task].addClassName('complete') i'm

[Rails] Re: changing row color on checkbox click

2008-12-29 Thread Scott Kulik
Mark Reginald James wrote: Scott Kulik wrote: i'm not that familiar with javascript so i'm not sure how i would finish this. thanks! %= check_box_tag :task, 1, false, :onchange = $(parentNode.parentNode).toggleClassName('complete') % -- Rails Wheels - Find Plugins, List Sell

[Rails] Re: AJAX select box dropdown update form

2008-12-29 Thread Patrick Doyle
On Mon, Dec 29, 2008 at 6:07 PM, Allen Walker rails-mailing-l...@andreas-s.net wrote: I have the following form with 2 selectbox drop downs: SelectBox1 SelectBox2 WHen the user changes the selection in SelectBox1, I want SelectBox2 to be updated to contain a different set of options.

[Rails] Re: index = nil params jumbled *sometimes*

2008-12-29 Thread Matt Darby
Those first three fields are not enclosed in a cell. That may cause IE to send the parameters in the wrong order. Please log and post the raw_post string. Ahh, IE, my old friend. Perhaps this is why I wasn't able to recreate it. Here is the raw POST: Processing TimeCardsController#day (for

[Rails] Re: Making a Little Application

2008-12-29 Thread Pierce
Sorry for the bump, but I am about to begin the rewrite and am wondering if there is some way to do this in Rails. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group,

[Rails] Re: changing row color on checkbox click

2008-12-29 Thread Scott Kulik
Scott Kulik wrote: Mark Reginald James wrote: Scott Kulik wrote: i'm not that familiar with javascript so i'm not sure how i would finish this. thanks! %= check_box_tag :task, 1, false, :onchange = $(parentNode.parentNode).toggleClassName('complete') % -- Rails Wheels - Find

[Rails] Re: changing row color on checkbox click

2008-12-29 Thread Brandon Keepers
On Mon, Dec 29, 2008 at 11:17 PM, Scott Kulik rails-mailing-l...@andreas-s.net wrote: Scott Kulik wrote: Mark Reginald James wrote: Scott Kulik wrote: i'm not that familiar with javascript so i'm not sure how i would finish this. thanks! %= check_box_tag :task, 1, false, :onchange =

[Rails] Re: Avoiding ActiveRecord loading for efficiency with lots of rows

2008-12-29 Thread Jeremy Weiskotten
Greg Brockman wrote: Hello all, This is my first post to this group, so please let me know if there is any protocol I'm supposed to follow that I missed. Anyway, I've been developing a Rails application for handling the registration and score data of a math competition. There is an

[Rails] Who can consult with me on scaling and architecture?

2008-12-29 Thread Robert Matei
I'd love to pay someone who has serious scaling experience to talk with me about how to plan for scaling. I'm developing a network of applications in Rails that could see tens of millions of users. I'm in way over my head, so I'd like to talk to someone who's been through it before. I want to

[Rails] Re: changing row color on checkbox click

2008-12-29 Thread Scott Kulik
Brandon Keepers wrote: On Mon, Dec 29, 2008 at 11:17 PM, Scott Kulik rails-mailing-l...@andreas-s.net wrote: another check box the first check box row gets highlighted. any idea what could be causing the incompatibility with IE? Try adding `this`: %= check_box_tag :task, 1, false,

[Rails] Joins, Joins, Joins! Or Not?

2008-12-29 Thread Jörg Battermann
Good morning, I have a quick joins-related question: I have a a list of followings (User following another user's activity) which basically have these followed users' ids under 'followable_id'. now what I want to do and finally have is to take these followed users and check what activities they

[Rails] Re: changing row color on checkbox click

2008-12-29 Thread Scott Kulik
Scott Kulik wrote: but they all produce the same weird result where they don't update until i click a second time. first click always does nothing. finally got it. it was the :onchange that was causing some issues. i changed it to :onclick and all methods are now working with IE7.

[Rails] Wrong number of arguments?

2008-12-29 Thread Ryan Ororie
I'm going through a tutorial here and running into an error I'm not sure how to fix..this is my first foire into sessions. Trying to create a shopping cart for a store app. I'm getting this error: wrong number of arguments (1 for 0) RAILS_ROOT: script/../config/.. Here is my cart_item.rb

[Rails] Re: Wrong number of arguments?

2008-12-29 Thread Matt
You're going to have to isolate what line the error originates from on your application by going through the Rails trace information, otherwise we're all going to be here forever trying to figure out what the problem is. On Dec 30, 1:22 am, Ryan Ororie rails-mailing-l...@andreas-s.net wrote:

[Rails] Rails app supplying image to a static page?

2008-12-29 Thread mksys
Can anyone help point me in the right direction on doing the following? Say I have a Rails app that deals with photos at photo.website.com, and I also have a legacy site at www.website.com. What I would like to do is from a static html page on www.website.com have a random photo displayed from

[Rails] Re: Wrong number of arguments?

2008-12-29 Thread Ryan Ororie
Matt wrote: You're going to have to isolate what line the error originates from on your application by going through the Rails trace information, otherwise we're all going to be here forever trying to figure out what the problem is. On Dec 30, 1:22�am, Ryan Ororie

[Rails] Re: Y

2008-12-29 Thread emanuele tozzato
I'm sorry: I was handling my phone and I just pressed the most incredible accidental sequence of my life!! Peace. iPhonized! On Dec 29, 2008, at 11:39 PM, emanuele tozzato etozz...@gmail.com wrote: iPhonized! --~--~-~--~~~---~--~~ You received this