[Rails] Re: Weird Safari 4 issue with template caching!

2009-09-23 Thread Mukund
Not possible to guess without the actual code. A good check would be to run the generated HTML through the W3C HTML validator to see if there are some malformed tags causing the issue. On Sep 21, 12:32 am, Gavin ga...@thinkersplayground.com wrote: Anybody else experience this problem: I've

[Rails] Re: Random retrieveal from database

2009-09-23 Thread Brijesh Shah
Subashini Kumar wrote: How can i choose some n (n is gonna be fixed )records randomly from a mysql database table from our controller? Use RAND() function in mysql query... select * from TABLE_NAME order by RAND() limit N -- Posted via http://www.ruby-forum.com/.

[Rails] How to convert months into days in ruby?

2009-09-23 Thread Vikas Gholap
Hello, How to convert months to days in ruby? I want for example 6 months = total days of next 6 months from todays date. How i do that? Thanks, Vikas -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are

[Rails] Re: Random retrieveal from database

2009-09-23 Thread Subashini Kumar
Brijesh Shah wrote: Subashini Kumar wrote: How can i choose some n (n is gonna be fixed )records randomly from a mysql database table from our controller? Use RAND() function in mysql query... select * from TABLE_NAME order by RAND() limit N Yeah !! cool!!! thanks a lot!!! -- Posted

[Rails] Re: Validation fails but objects seems to have the values

2009-09-23 Thread PanosJee
I found the errors 2 days ago, it is quite strange. I was saving the dates with this format dd/mm/yy That would work for parent model but not the nested! I had to change the date to yy-mm-dd for the nested object and it just worked! On 23 Σεπτ, 03:44, pepe p...@betterrpg.com wrote: Could it be

[Rails] Re: How to convert months into days in ruby?

2009-09-23 Thread Abhinav Saxena
I don't know how to do it, but see if Chronic might be of some use http://chronic.rubyforge.org/ Thanks, Abhinav -- अभिनव http://twitter.com/abhinav On Wed, Sep 23, 2009 at 11:53 AM, Vikas Gholap rails-mailing-l...@andreas-s.net wrote: Hello, How to convert months to days in ruby? I

[Rails] Re: How to convert months into days in ruby?

2009-09-23 Thread Brijesh Shah
Vikas Gholap wrote: Hello, How to convert months to days in ruby? I want for example 6 months = total days of next 6 months from todays date. date_today=Date.today date_next =Date.today.advance(:months=6) (date_next - date_now).to_i given result in days... -- Posted via

[Rails] Re: How to convert months into days in ruby?

2009-09-23 Thread Vikas Gholap
Brijesh Shah wrote: Vikas Gholap wrote: Hello, How to convert months to days in ruby? I want for example 6 months = total days of next 6 months from todays date. date_today=Date.today date_next =Date.today.advance(:months=6) (date_next - date_now).to_i given result in days...

[Rails] Re: Installing RedCloth

2009-09-23 Thread roarindustries
On Sep 21, 5:45 am, Dave Porter dave.southpe...@gmail.com wrote: OK, I got RedCloth installed, but line at step 3 now gives this error: (I replaced my original %= textilize(article.body) %  with the line shown from the rail api, they both give the same error! ) Regards, Dave NameError in

[Rails] Re: when and how to use ActiveRecord::Migration

2009-09-23 Thread Frederick Cheung
On Sep 23, 4:38 am, Thufir hawat.thu...@gmail.com wrote: Interestingly, the text book Practical Ruby Gemshttp://www.apress.com/book/view/9781590598115 listing 5-1 uses ActiveRecord::Base wheras ActiveRecord::Migration would give more flexibility, right? I imagine they are just showing

[Rails] FFMPEG Query

2009-09-23 Thread Salil Gaikwad
Hi All, I want to convert a video file which is located at the Amazon-S3 Store, through ffmpeg. How can it b possible? please help me if anyone have any idea. for ex:- is it possible to execute following command:- system ffmpeg -i

[Rails] Routes requirements exclude one character

2009-09-23 Thread harm
Hi! Consider the following route: map.detail subscription_plans/:provider/:plan, :action = detail, :requirements = {:plan = /[^ ]+/} I want this route to match any string _without_ a space character. So Telfort-100 matches Telfort 100 does not. I believed this to be correct but it's not.

[Rails] Retrieving subject line from a mail

2009-09-23 Thread Rails ROR
Hi I want to retrieve the subject line received from the inbox in a mail either from yahoo, gmail, etc. Please guide me on this if anybody can. How do i proceed? Please let me know that. Thanks in advance. Regards, Learner --~--~-~--~~~---~--~~ You

[Rails] HOW IT WORKS

2009-09-23 Thread Newb Newb
def list #--- # gets params[:start] from account-grid.js start = (params[:start] || 0).to_i # gets params[:limit] from account-grid.js #size variable has count per page size = (params[:limit] || 20).to_i # page variable gives current page number page = ((start/size).to_i) + 1

[Rails] Re: HOW IT WORKS

2009-09-23 Thread Colin Law
2009/9/23 Newb Newb rails-mailing-l...@andreas-s.net: def list #---  # gets params[:start] from account-grid.js  start = (params[:start] || 0).to_i  # gets params[:limit] from account-grid.js  #size variable has count per page  size = (params[:limit] || 20).to_i  # page variable

[Rails] collection_text onchange event

2009-09-23 Thread Subashini Kumar
hi, I want to display a drop down list and when i select some option from the drop down list i want to display all the records under that selected category in the SAME PAGE.. eg .. %= collection_select(:question,:subject_id ,@subject, :id, :name) % when i choose a subject i should,

[Rails] Re: Retrieving subject line from a mail

2009-09-23 Thread saideep a.v.s
As a first stage., are you able to get the array of all the mails from your inbox? Best Wishes, Saideep Annadatha On Wed, Sep 23, 2009 at 2:36 PM, Rails ROR developra...@gmail.com wrote: Hi I want to retrieve the subject line received from the inbox in a mail either from yahoo, gmail,

[Rails] page rendering and drop down onchange event

2009-09-23 Thread Subashini Kumar
hi, I want to display a subject drop down list and when i select some option from the drop down list i want to display all the questions under that selected category in the SAME PAGE and also get a form to add new questions in the same page. eg .. %= collection_select(:question,:subject_id

[Rails] how can I use Apache to serve static content for a RoR app when I have only .htaccess access (and can't add Apache modules) [on Dreamhost shared server]

2009-09-23 Thread Greg Hauptmann
Hi, Are there any Rails/Apache guru's that might know if it's possible (and how) to have the ability for users to upload their content to my RoR application but then subsequent access to such static content would be: a) served by APACHE web server [to avoid the overhead of going via Rails],

[Rails] Re: collection_text onchange event

2009-09-23 Thread Sijo Kg
Hi Have a look at observe_field http://api.rubyonrails.org/classes/ActionView/Helpers/PrototypeHelper.html#M001654 Sijo -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Rails] Collection_Select

2009-09-23 Thread Rails ROR
HI Perhaps it is the most simple doubt that i am asking you all. I am really new to rails. I haven't understood much about collection_select. I have posts and author tables. I want the authors in posts. I need a combobox to populate all the authors name How can i do this with

[Rails] Re: ActiveRecord::StatementInvalid (invalid date) with Oracle

2009-09-23 Thread Martijn van Rheenen
As far as I can see now, the problem is in the oracle_enhanced adapter or in ActiveRecord. I created this small Ruby script to test each component: require 'rubygems' gem 'ruby-oci8' require 'oci8' gem 'activerecord' gem 'activerecord-oracle_enhanced-adapter' require 'activerecord'

[Rails] Migration Datatypes

2009-09-23 Thread Jonas Latza
Hi, I am new to Rails and want to know where i can find a list of migration fieldtypes to use inside a scaffold command. Yours sincerely Jonas Latza --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails:

[Rails] Set Time.zone from offset including DST

2009-09-23 Thread Florent
Hi all, I have a big deal with timezones: is it possible to set a user's timezone from it's offset from UTC? I mean, I don't want to ask the user in which timezone he is, so I get this offset from a Javascript call and set Time.zone from this. It worked until I noticed this problem: In Paris,

[Rails] Re: Migration Datatypes

2009-09-23 Thread saideep a.v.s
Maybe, this cheat sheet will help you http://dizzy.co.uk/ruby_on_rails/cheatsheets/rails-migrations Best Wishes, Saideep Annadatha On Wed, Sep 23, 2009 at 2:25 PM, Jonas Latza to.the.mat...@gmail.comwrote: Hi,I am new to Rails and want to know where i can find a list of migration fieldtypes

[Rails] activerecord get next element

2009-09-23 Thread Bensoussan Michael
Hi, How would you get an SQL element, the next one and the previous one, but the definition of a next/previous element is not dependant only of his id but also of a status, exemple : id status 1 true 2 false 3 true Here the next element of 1 is 3 any idea ? Thanks

[Rails] Re: activerecord get next element

2009-09-23 Thread Colin Law
2009/9/23 Bensoussan Michael pad...@gmail.com: Hi, How would you get an SQL element, the next one and the previous one, but the definition of a next/previous element is not dependant only of his id but also of a status, exemple : id status 1  true 2 false 3 true Here the next element

[Rails] Re: Set Time.zone from offset including DST

2009-09-23 Thread Florent
I found this solution: http://spongetech.wordpress.com/2009/02/27/detecting-browser-time-zone-with-rails/#comment-725 Basically, it selects the good timezone by checking the a timezone is currently in DST and by comparing the given offset with its own one. This solution seems to work (have to

[Rails] Widgets

2009-09-23 Thread Smit Shah
Hi All, Any one is having any idea about how to create widgets in rails??? Thanks in advance... -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group.

[Rails] Re: activerecord get next element

2009-09-23 Thread mickeyben
yes but that doesnt resolve my problem (I think), I don't want to select all the database, otherwise I just need to filter by status an order by id, I just want this 3 results :-/ On Sep 23, 2:38 pm, Colin Law clan...@googlemail.com wrote: 2009/9/23 Bensoussan Michael pad...@gmail.com: Hi,

[Rails] Re: Retrieving subject line from a mail

2009-09-23 Thread Rails ROR
HI , yeah i could do that. Thanks Learner On Wed, Sep 23, 2009 at 2:50 AM, saideep a.v.s annada...@gmail.com wrote: As a first stage., are you able to get the array of all the mails from your inbox? Best Wishes, Saideep Annadatha On Wed, Sep 23, 2009 at 2:36 PM, Rails ROR

[Rails] Re: Set Time.zone from offset including DST

2009-09-23 Thread Rob Biedenharn
On Sep 23, 2009, at 7:41 AM, Florent wrote: I found this solution: http://spongetech.wordpress.com/2009/02/27/detecting-browser-time-zone-with-rails/#comment-725 Basically, it selects the good timezone by checking the a timezone is currently in DST and by comparing the given offset with

[Rails] Re: activerecord get next element

2009-09-23 Thread Colin Law
2009/9/23 mickeyben pad...@gmail.com: yes but that doesnt resolve my problem (I think), I don't want to select all the database, otherwise I just need to filter by status an order by id, I just want this 3 results :-/ Do you mean that you know the id of a record, and you have a defined sort

[Rails] Re: collection_text onchange event

2009-09-23 Thread Subashini Kumar
Sijo Kg wrote: Hi Have a look at observe_field http://api.rubyonrails.org/classes/ActionView/Helpers/PrototypeHelper.html#M001654 Sijo Hi, i tried like this, View page: %= collection_select(:question,:subject_id ,Subject.all, :id, :name ) % %= observe_field

[Rails] Re: activerecord get next element

2009-09-23 Thread Rob Biedenharn
On Sep 23, 2009, at 7:49 AM, mickeyben wrote: On Sep 23, 2:38 pm, Colin Law clan...@googlemail.com wrote: 2009/9/23 Bensoussan Michael pad...@gmail.com: Hi, How would you get an SQL element, the next one and the previous one, but the definition of a next/previous element is not dependant

[Rails] Re: javascript using jQuery.js and prototype.js doesnt work 2get

2009-09-23 Thread Andy Rappaport
Billy Hsu wrote: include jquery and use jQuery.noConflict(); before you include prototypeand try again. Thanks. Simply moving the JS include of prototype.js after all of my other JS includes did the trick for me. AJAX now works for my rails app. Andy -- Posted via

[Rails] dynamic content inside a view - how to do

2009-09-23 Thread Sameera Gayan
Hi, I have a program where customer can make different conditions (sales promotions), I dont want to create view for each promotion for customers to choose. What I thought of is, if I could save a given promotion's view's (html) code in a database and load it when user selects a give promotion

[Rails] Re: Retrieving subject line from a mail

2009-09-23 Thread saideep a.v.s
I believe each mail object will be either hash or array, try finding out that and then you must be able to get the subject line from that object. Best Wishes, Saideep Annadatha On Wed, Sep 23, 2009 at 5:27 PM, Rails ROR developra...@gmail.com wrote: HI , yeah i could do that. Thanks

[Rails] Re: activerecord get next element

2009-09-23 Thread mickeyben
thanks colin and rob, that's approximately what I have so far, I was hoping a solution to do it in one request :-/ On Sep 23, 3:08 pm, Rob Biedenharn r...@agileconsultingllc.com wrote: On Sep 23, 2009, at 7:49 AM, mickeyben wrote: On Sep 23, 2:38 pm, Colin Law clan...@googlemail.com

[Rails] Forcing a wait

2009-09-23 Thread RVince
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

[Rails] Re: Forcing a wait

2009-09-23 Thread Frederick Cheung
On Sep 23, 1:27 pm, RVince rvinc...@hotmail.com wrote: I have something in my controller which needs to wait 1 or 2 seconds before doing a render ... well you could call sleep, but you will of course block that mongrel/ passenger instance etc. for the duration of the sleep (assuming rails in

[Rails] Re: activerecord get next element

2009-09-23 Thread Marnen Laibow-Koser
Mike Mickey wrote: thanks colin and rob, that's approximately what I have so far, I was hoping a solution to do it in one request :-/ The simplest way would be to use UNION on the two queries. You could also use subquery syntax to munge the criteria. Best, -- Marnen Laibow-Koser

[Rails] Re: Collection_Select

2009-09-23 Thread John T.
Rails ROR wrote: HI Please explain me clearly so that i can proceed forward. Thanks in advance *Sigh* http://www.lmgtfy.com/?q=rails+collection_select -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because

[Rails] Re: Set Time.zone from offset including DST

2009-09-23 Thread Florent
On Sep 23, 2:00 pm, Rob Biedenharn r...@agileconsultingllc.com wrote: It can't be foolproof because the northern and southern hemispheres   have opposite seasons and when they observe daylight time is   understandably about a half-year off from the other hemisphere. I'm   sure (even without

[Rails] Re: Import excel / csv files

2009-09-23 Thread milandobrota
Why do you say that fixtures are broken? On Sep 22, 4:22 pm, Marnen Laibow-Koser rails-mailing-l...@andreas- s.net wrote: Goro Kuroita wrote: If you mean CSV to DB records, you should use fixtures. On terminal window. rake db:fixtures:load FIXTURES=table_name RAILS_ENV=development

[Rails] Re: Forcing a wait

2009-09-23 Thread Gianluca Tessarolo
@Frederick: could you give me a configuration example in which the sleep doesn't block the process ? (rails threadsafe mode...) I try with JRuby/Patched Mongrel/Glassfish gem but the result is evere the same: ex. 4 concurrent calls with sleep 10 each one I must wait 40 seconds ! The simple

[Rails] Re: Import excel / csv files

2009-09-23 Thread Marnen Laibow-Koser
Milan Dobrota wrote: Why do you say that fixtures are broken? The short answer is that they're unsuited to their intended purpose (populating the test DB). They're better than nothing, but are an inferior alternative to other solutions now available. I'll get into the long answer if you

[Rails] Re: rspec_scaffold URL generation errors

2009-09-23 Thread Steve Scruggs
Steve Scruggs wrote: The problem was caused by the plugin resource_fu. I removed the plugin and the url's are now generated as expected. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Rails] Re: Set Time.zone from offset including DST

2009-09-23 Thread Colin Law
2009/9/23 Florent florentvauce...@gmail.com: On Sep 23, 2:00 pm, Rob Biedenharn r...@agileconsultingllc.com wrote: It can't be foolproof because the northern and southern hemispheres have opposite seasons and when they observe daylight time is understandably about a half-year off from the

[Rails] How to use remote_form_tag?

2009-09-23 Thread Patrick Doyle
I have a partial that gets rendered in response to a #link_to_remote call. What I want to do is to display a select box, when the user selects an item from that box, display a second select box, when the user selects an item from that box, display a link (or possibly a submit button) allowing

[Rails] Re: Set Time.zone from offset including DST

2009-09-23 Thread Rob Biedenharn
On Sep 23, 2009, at 9:11 AM, Florent wrote: On Sep 23, 2:00 pm, Rob Biedenharn r...@agileconsultingllc.com wrote: It can't be foolproof because the northern and southern hemispheres have opposite seasons and when they observe daylight time is understandably about a half-year off from the

[Rails] Re: How to use remote_form_tag?

2009-09-23 Thread Patrick Doyle
Here is my best idea so far, which, unfortunately, doesn't work... % form_remote_tag :url = select_assembly, :update = disposition, :html = {:id = 'xxx'} do % %= select_tag use_part, options_for_select(@parts, @use_part), :onchange = $('xxx').submit() % % if @use_part % %=

[Rails] Re: Set Time.zone from offset including DST

2009-09-23 Thread Florent
I'm not thinking I will write a timezone library yet ;) Currently I get the user offset from Javascript (I know about non js- enabled browsers), so I think about _maybe_ not using timezones at all, but just the offset for displaying purpose. This would be the last chance try. For now, I think

[Rails] Dreamhost launch issues. What gems are used in my rails app?

2009-09-23 Thread Tony Tony
Hi guys, I made a quick app for a family member to be deployed on Dreamhost (low budget). It's my first time deploying on DH so I'm not familiar with the restrictions. I'm having an issue where I've been able to get git on both systems and used capistrano to deploy the app. However migrations

[Rails] Re: RedCloth Changing Features

2009-09-23 Thread Joe
Anyone know how to do this? or another way of acheving the tags being proccessed?? On Sep 22, 6:48 pm, Joe j...@dev-hq.co.uk wrote: Hi, I basically run a very simple RoR app which works using RedCloth's textilizing system. I would just like to know if there is a way to edit for example the

[Rails] Re: mysql

2009-09-23 Thread Daniel Hutchinson
heimdull wrote: I have seen the fix for this be one of the following: if you have charset: utf8 change that to encoding or use 127.0.0.1 and not localhost or permissions for the user in the database (create table is a good one to have... ) On Sep 22, 4:52�pm, Daniel Hutchinson

[Rails] Re: ActiveRecord::StatementInvalid (invalid date) with Oracle

2009-09-23 Thread Martijn van Rheenen
Finally, I found the error with 'invalid date' on Oracle 8. Seems that oracle not only allows 'null' dates, but also 'empty' dates. On 'empty' dates, the error would come up! Below is what I changed in oracle_enhanced_oci_connection.rb in

[Rails] Re: Determine type in polymorphic relation

2009-09-23 Thread pepe
I'm not sure of what you need to do but I'll assume that you just want to create an association between a person and a vehicle of type car or truck (or whatever). I am assuming that you have STI built into your vehicles table, with a column named 'type' that stores the type of vehicle

[Rails] Re: RedCloth Changing Features

2009-09-23 Thread Marnen Laibow-Koser
Joe wrote: Hi, I basically run a very simple RoR app which works using RedCloth's textilizing system. I would just like to know if there is a way to edit for example the *e.g* making things emphisised ect. I want to basically remove all the functions and things like that, as I want to use

[Rails] Re: ActiveRecord::StatementInvalid (invalid date) with Oracle

2009-09-23 Thread pepe
I don't know if this could help but I had kind of a similar problem at one point. After much research I ended up coming across a solution by which you can modify in your model the value returned from the DB. You have to override the reader method (code below). This worked for me only when reading

[Rails] Re: RJS file not rendering

2009-09-23 Thread Tim Lowrimore
Try renaming cities.rjs to cities.js.rjs. Rails is smart enough to know that it's getting a JS request, so there's no need to tell Rails to what template to use as long as the controller method and view template follow the standard naming convention. Tim On Tue, Sep 22, 2009 at 5:36 PM, bill

[Rails] failed validation not showing the errors but vars

2009-09-23 Thread Heinz Strunk
Hello, I have a remote_form_for and got a strange validation error: ### Konnte dieses new activity Objekt nicht speichern: 2 Fehler. Bitte überprüfen Sie die folgenden Felder: * {{attribute}} {{message}} * {{attribute}} {{message}}

[Rails] Re: activerecord get next element

2009-09-23 Thread Tim Lowrimore
Better yet. Take these conditions and apply each as a named scope. Then, by chaining the calls you'll get everything in one nice little query. So for example (assuming a default order of: id ASC): In your model (lets call it Foo): named_scope :for_status, lambda { |status|

[Rails] Re: activerecord get next element

2009-09-23 Thread Tim Lowrimore
Actually the calls should look like this: previous = Foo.for_status(true).find_previous(3).last next = Foo.for_status(true).find_subsequent(1).first So, the .last and .first calls were transposed. Cheers, Tim On Wed, Sep 23, 2009 at 10:05 AM, Tim Lowrimore tlowrim...@gmail.comwrote: Better

[Rails] Re: RJS file not rendering

2009-09-23 Thread Aaron Vegh
Hi again, Bah, turns out I had the right files in the wrong folder. I have an admin/stores folder and a plain old stores folder, and my partials and RJS were in the admin version Stupid! Thanks, Aaron. -- Posted via http://www.ruby-forum.com/.

[Rails] Solved Client does not support authentication protocol..

2009-09-23 Thread Daniel Hutchinson
I decide to new post because I posted with MySQL title which dont say nothing about the real problem So when i get the message Client does not support authentication protocol requested by server; consider upgrading MySQL client or after run rake db:create get error message could create

[Rails] Re: Determine type in polymorphic relation

2009-09-23 Thread Heinz Strunk
First of all thank you guys! I think what Valentin wrote is just what I was looking for. Person, Car, Truck was just an example. It's a lot more complexe in my application and you can't just merge these two different models into one and add a :type. I'll do it like Valentin suggested. Thanks

[Rails] Running Ror application from Tomcat

2009-09-23 Thread Simone R.
We just did it by following this step-by-step guide http://adams.id.au/blog/2008/05/running-a-rails-app-under-tomcat-using-jruby/ if anyone was waiting for a hint I can say that this guide it worked for me. -- Posted via http://www.ruby-forum.com/.

[Rails] Re: how to truncate tables before seeding data?

2009-09-23 Thread Heinz Strunk
Yes, but I want it to happen automatically so I think Abhinavs code snippet is exactly what I was looking for. Thanks! -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby

[Rails] Re: Dreamhost launch issues. What gems are used in my rails app?

2009-09-23 Thread Heinz Strunk
Have you tried to run rake gems:install on the server to install all required gems? -- 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

[Rails] Re: Determine type in polymorphic relation

2009-09-23 Thread Ilan Berci
Heinz Strunk wrote: First of all thank you guys! I think what Valentin wrote is just what I was looking for. Person, Car, Truck was just an example. It's a lot more complexe in my application and you can't just merge these two different models into one and add a :type. I'll do it like

[Rails] Re: Dreamhost launch issues. What gems are used in my rails app?

2009-09-23 Thread Colin Law
2009/9/23 Tony Tony rails-mailing-l...@andreas-s.net: Hi guys, I made a quick app for a family member to be deployed on Dreamhost (low budget). It's my first time deploying on DH so I'm not familiar with the restrictions. I'm having an issue where I've been able to get git on both systems

[Rails] Re: Dreamhost launch issues. What gems are used in my rails

2009-09-23 Thread Tony Tony
Heinz Strunk wrote: Have you tried to run rake gems:install on the server to install all required gems? Yea tried that - there was nothing to install. I think I just figured out what's partly wrong. I had to install rails 2.3.3 on DH. Now I'm getting a different error. Thanks! --

[Rails] Re: Dreamhost launch issues. What gems are used in my rails

2009-09-23 Thread Tony Tony
Colin Law wrote: 2009/9/23 Tony Tony rails-mailing-l...@andreas-s.net: database for production (same schema) and the site still fails to load. page just in case, Any help is appreciated!!: no such file to load -- application (MissingSourceFile) 2 133  in `require_dependency'

[Rails] text_field_with_auto_complete passing parameters

2009-09-23 Thread Mark Mr
Hi, I've run into a problem with text_field_with_auto_complete because I can't figure out how to just pass a parameter into the method. For example, here's what i want to try and do: %= text_field_with_auto_complete :profile, :lastname, :conference_id = @conf % And in the method I'm doing this:

[Rails] Re: activerecord get next element

2009-09-23 Thread mickeyben
nice one ! Thanks On Sep 23, 6:26 pm, Tim Lowrimore tlowrim...@gmail.com wrote: Actually the calls should look like this: previous = Foo.for_status(true).find_previous(3).last next = Foo.for_status(true).find_subsequent(1).first So, the .last and .first calls were transposed. Cheers, Tim

[Rails] Re: How to use remote_form_tag?

2009-09-23 Thread Patrick Doyle
Just in case anybody is interested in this thread... here is what I got to work for me: % form_remote_tag :url = select_assembly, :update = disposition do % %= disposition_select_tag use_part, @parts, @use_part % % if @use_part % %= disposition_select_tag use_lot, @lots, @use_lot %

[Rails] Re: auto_complete text field not showing drop-down box properly

2009-09-23 Thread Mark Mr
this might sound weird, but in your view of the list try putting everything on the same line i.e.: ul li somthing /li ul Becomes: ullisomething/li/ul I think I remember that fixing my problem, although it might not work for you. -- Posted via http://www.ruby-forum.com/.

[Rails] Authlogic administration

2009-09-23 Thread the batman
Whats the best way to use administration with authlogic? I have a single admin role and a limited users role. The admin section is namespaced. Is using a plugin like lockdown or declarative_authorization a good idea or overkill for only having 2 seperate roles? thanks -- Posted via

[Rails] Re: How to use remote_form_tag?

2009-09-23 Thread Alexander Melle
Hi Patrick, if i understand correctly you want to have 2 select boxes that are depending. So the second one changes it's content mased on the first one ... Took me some time to find out ... The trick was to put the second select into it's own partial : the view would look like this : [code]

[Rails] Re: Dreamhost launch issues. What gems are used in my rails

2009-09-23 Thread Mark Mr
for migrations, have you tried running rake db:migrate RAILS_ENV=production ? That may or may not work. As far as the plugins go, you shouldnt need gems to make them work, or if you did you would only get an error when trying to use them. I believe paperclip does require ImageMagick though.

[Rails] link_to_function and link_to_remote

2009-09-23 Thread Vlad Khomich
Hi guys. I`m having this kind of problem: i have the comments tree, there`s this link_to_function under each one: link_to_function Reply, $('comment_parent_id').setValue(#{comment.id}); as you see it simply passes comment.id to my form. Form looks like this : div id=main-comment-form

[Rails] Re: So Im sure someone has come across this before...but how do you fix the gem_original_require p

2009-09-23 Thread Mike Younesi
Ron wrote: I get this when trying to install gems: /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- rdoc/rdoc (LoadError) The trouble is, I also get it when trying to install rubygems...so I wound up installing 0.9.4. I can't

[Rails] Rails Library for Generating Graphs and Charts

2009-09-23 Thread Piyush with Rails
Hello Friends, Hope all are doing well. I was seeking some guidance on open-source, stable, efficient and better library (plugin/gem) for generating chars and graphs in rails. here i am looking for graphs/charts with multiple scale in a single axis. also i am having concerns for exporting

[Rails] Rails Library for Generating Graphs and Charts

2009-09-23 Thread Piyush with Rails
Hello Friends, Hope all are doing well. I was seeking some guidance on open-source, stable, efficient and better library (plugin/gem) for generating chars and graphs in rails. here i am looking for graphs/charts with multiple scale in a single axis. also i am having concerns for exporting

[Rails] Re: Dreamhost launch issues. What gems are used in my rails

2009-09-23 Thread Tony Tony
The Ultimation wrote: for migrations, have you tried running rake db:migrate RAILS_ENV=production ? That may or may not work. As far as the plugins go, you shouldnt need gems to make them work, or if you did you would only get an error when trying to use them. I believe paperclip does

[Rails] Re: mysql

2009-09-23 Thread Daniel Hutchinson
Daniel Hutchinson wrote: Solved! I decide to new post because I posted with MySQL title which dont say nothing about the real problem So when i get the message Client does not support authentication protocol requested by server; consider upgrading MySQL client or after run rake db:create

[Rails] Re: RedCloth Changing Features

2009-09-23 Thread Joe
Ok first sorry for the bump, its just I was rather desperate. Secondly, Thanks for the advice and I will use it to fix my recloth issue. Thanks, Joe On Sep 23, 4:03 pm, Marnen Laibow-Koser rails-mailing-l...@andreas- s.net wrote: Joe wrote: Hi, I basically run a very simple RoR app which

[Rails] Connecting to MS SQL from Snow Leopard

2009-09-23 Thread TomRossi7
Has anyone been able to get Rails talking to Microsoft SQL Server from OSX Snow Leopard? In the past with Leopard, I used the instructions found here: http://wiki.rubyonrails.org/database-support/ms-sql. But with Snow Leopard I get the following error when I try to access an ActiveRecord

[Rails] Re: link_to_function and link_to_remote

2009-09-23 Thread tomrossi7
Vlad, I think you may want to check out the :with option for the link_to_remote. It will allow you to pass back to the controller the comment.id for the link that was clicked. Is that what you mean? --Tom On Sep 23, 1:03 pm, Vlad Khomich rails-mailing-l...@andreas-s.net wrote: Hi guys. I`m

[Rails] Autoincrement

2009-09-23 Thread doug
I am using SQLite 3. I have deleted all of the rows of a member table but one. The one row that remains is for the administrative user and has an id of 0. I'd sure like to zero out the autoincrement counter. The documentation for SQLite contains the following warning: The content of the

[Rails] Re: Autoincrement

2009-09-23 Thread Aldric Giacomoni
Well, I am not a SQLite developer, but now I am -very- curious as to what that would do. Can you afford to make a copy of the SQLite file and -try-.. And then report back to us? ;-) -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received

[Rails] Moving to another database system

2009-09-23 Thread Aldric Giacomoni
So, I developed what I considered a mini application for my department back in June. I used SQLite3. The file is still very small - about 2.5 megs - but I'd like to move to something else which supports multiple simultaneous read/writes better than SQLite3. What do I need to do? Clearly, rake

[Rails] Re: Authlogic administration

2009-09-23 Thread Marnen Laibow-Koser
the batman wrote: Whats the best way to use administration with authlogic? I have a single admin role and a limited users role. The admin section is namespaced. Is using a plugin like lockdown or declarative_authorization a good idea or overkill for only having 2 seperate roles?

[Rails] Re: Moving to another database system

2009-09-23 Thread Fidel Viegas
On Wed, Sep 23, 2009 at 7:09 PM, Aldric Giacomoni rails-mailing-l...@andreas-s.net wrote: So, I developed what I considered a mini application for my department back in June. I used SQLite3. The file is still very small - about 2.5 megs - but I'd like to move to something else which supports

[Rails] Re: Autoincrement

2009-09-23 Thread djolley
Can you afford to make a copy of the SQLite file and -try-.. And then report back to us? ;-) I am pleased to report that it seems to work just fine. The warning still scares me. I'm afraid that I am going to get unexpectedly bitten some day. The warning is expressly directed to those who do

[Rails] Re: Moving to another database system

2009-09-23 Thread Aldric Giacomoni
What? No pre-chewed answer for me? I have to go read the docs? What ignominy is this? Alright - thanks ;) -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails:

[Rails] Re: Moving to another database system

2009-09-23 Thread Marnen Laibow-Koser
Aldric Giacomoni wrote: So, I developed what I considered a mini application for my department back in June. I used SQLite3. The file is still very small - about 2.5 megs - but I'd like to move to something else which supports multiple simultaneous read/writes better than SQLite3. Yeah. As

[Rails] Re: Autoincrement

2009-09-23 Thread Aldric Giacomoni
Doug Jolley wrote: Can you afford to make a copy of the SQLite file and -try-.. And then report back to us? ;-) I am pleased to report that it seems to work just fine. The warning still scares me. I'm afraid that I am going to get unexpectedly bitten some day. The warning is expressly

[Rails] Running App in Production Env

2009-09-23 Thread Adam Meyer
Hi everyone, yesterday I switched the environment on my production server from dev to prod via changing the vhost file for the Apache. I changed RailsEnv development to RailsEnv production and deployed the application via capistrano. But now I get a passenger error see at

  1   2   >