[Rails] SWF multiple file upload

2009-08-28 Thread mahesh
Hi guys Im new to rails i would like to create app with swf file upload with multiple file upload, is that any sample app is available with multiple file uploads plz give me some reference for me Ur's Mahesh --~--~-~--~~~---~--~~ You received this message because

[Rails] Rmagick issue...

2009-08-28 Thread Arun Kumar
Hi all.. i am working on rails version 1.2.3 (it is must to work on version 1.2.3) ruby 1.8.6. For my project i want to convert text in to images files.. so that i use rmagick.. it is working fine for only english.. i need to convert images for multiple languages. I have showed my code below

[Rails] How to connect to Tandem SQL/MX database from ruby on rails

2009-08-28 Thread Saravanan
How to connect to Tandem SQL/MX database from ruby on rails? Is there any driver available ? Please reply asap Regards, Saravanan A --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To

[Rails] Re: rake db:test:clone_structure and related tasks fail

2009-08-28 Thread Nik Cool
rake aborted! wrong number of arguments (2 for 1) /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/tasks/databases.rake: 344:in `recreate_database' Thanks! Thomas do you have test database created ? -- Posted via http://www.ruby-forum.com/.

[Rails] Re: Stored Procedures MYSQL and Rails 2.3.2

2009-08-28 Thread nas
Check this http://nasir.wordpress.com/2007/12/03/stored-procedures-and-rails On Aug 27, 3:09 pm, Chris Dekker rails-mailing-l...@andreas-s.net wrote: Adding the 65536 flag seems to allow me to gather a resultset from the stored procedure, yet my commands go out of sync. Running any query

[Rails] Re: SWF multiple file upload

2009-08-28 Thread Nik Cool
mahesh wrote: Hi guys Im new to rails i would like to create app with swf file upload with multiple file upload, is that any sample app is available with multiple file uploads plz give me some reference for me Ur's Mahesh Use Acts_As_Attachment plugin

[Rails] Re: Adding New Column

2009-08-28 Thread Colin Law
2009/8/28 techtimer frmont...@hotmail.com: Thank you. I removed type and created a new field. Everything is working great thanks for your help. For future reference a list of words to avoid can be found at http://wiki.rubyonrails.org/rails/pages/ReservedWords Colin

[Rails] has_and_belongs_to_many with default

2009-08-28 Thread Aldo Italo
hi, i have used a relaction has_and_belongs_to_many to implementing a backoffice where the customer settings categories and products: the products can have multiple categories, it selet them with a combobox. Now the problem is the customer ask me needly to choice a category by default: products

[Rails] 1 Form 2 Models 2nd Model Requres 1st Model ID

2009-08-28 Thread brianp
Hey Everyone, So I have one form that submits information to create 2 models (A, B). I need the ID of model A to be inserted into model B. But the ID isn't created until it hits the database (auto_increment). But if for some reason either item cannot be created or saved I want to abort the whole

[Rails] Re: Asserting PUT methods

2009-08-28 Thread Jarl Friis
Jason Stewart jason.m.stew...@gmail.com writes: You can do something like assert_select a[onclick=?], /regexp here/ Yes, for now I have made like this: assert_select a#{PUT}[href=?], order_path(order, :update_timestamp = true) and I have declared PUT in test_helper like this: PUT =

[Rails] Re: Stored Procedures MYSQL and Rails 2.3.2

2009-08-28 Thread Chris Dekker
nas wrote: Check this http://nasir.wordpress.com/2007/12/03/stored-procedures-and-rails On Aug 27, 3:09�pm, Chris Dekker rails-mailing-l...@andreas-s.net Thanks, but that link did not help me. For MYSQL it doesn't even work. Stored procedures are called through 'CALL', not 'EXECUTE'.

[Rails] Help with Select

2009-08-28 Thread Quee Mm
I have the following three items in the db: :year_made # a value between 1980 and Time.now.year :year_imported # Local or a value between :year_made and Time.now.year :year_registered #If :year_imported == Local # a value between :year_made and Time.now.year #else # a value between

[Rails] Re: Setting @request.env[HTTP_REFERER] in an integration test

2009-08-28 Thread Jarl Friis
Thanks david. David Angga carsmetic...@gmail.com writes: 1. (*) text/plain ( ) text/html you can do it like this: @headers ||= {} @headers[HTTP_REFERER] = previous_link_url get/put/post some_link_url, nil, @headers hope this would help you. Well I got that far my

[Rails] Re: SWF multiple file upload

2009-08-28 Thread heimdull
http://github.com/JimNeath/swfupload---paperclip-example-app/ git://github.com/cameronyule/yui-uploader-rails-authentication.git --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to

[Rails] Alert box before Redirecting

2009-08-28 Thread Charanya Nagarajan
Hi all I have a form.On filling the details and clicking submit,i would like to pop up an alert box if the form was saved successfully before redirecting to the entry's show page. Kindly Help. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You

[Rails] Authorize.net CIM(Customer Information Manager)

2009-08-28 Thread Ghanshyam Rathod
Hi all, Please help me out for authorize.net CIM(customer information manager) implementation. thanks -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

[Rails] No route matches /%20questions/showans/1 with {:method=:g

2009-08-28 Thread Salman Lada
Hi i face this problem when i submit the information while evaluating the a new page in a already done scaffold...the new page is showans..i write the link_to tag like this %= link_to 'Submit', :controller = questions, :action = showans, :id = @question.id % -- Posted via

[Rails] Re: No route matches /%20questions/showans/1 with {:method=:g

2009-08-28 Thread Ghanshyam Rathod
Salman Lada wrote: Hi i face this problem when i submit the information while evaluating the a new page in a already done scaffold...the new page is showans..i write the link_to tag like this %= link_to 'Submit', :controller = questions, :action = showans, :id = @question.id %

[Rails] Re: SWF multiple file upload

2009-08-28 Thread Peter De Berdt
On 28 Aug 2009, at 08:25, mahesh wrote: Im new to rails i would like to create app with swf file upload with multiple file upload, is that any sample app is available with multiple file uploads plz give me some reference for me

[Rails] Re: Authorize.net CIM(Customer Information Manager)

2009-08-28 Thread robdoan
You can use this plugin http://github.com/Shopify/active_merchant/tree/master --~--~-~--~~~---~--~~ 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: Authorize.net CIM(Customer Information Manager)

2009-08-28 Thread Nik Cool
Ghanshyam Rathod wrote: Hi all, Please help me out for authorize.net CIM(customer information manager) implementation. thanks go to this site http://www.rubyplus.org/episodes/68-Rails-with-Active-Merchant-Authorize-Net-CIM-Gateway.html -- Posted via http://www.ruby-forum.com/.

[Rails] Re: JRuby vs Ruby: why would you ever use ruby?

2009-08-28 Thread Gianluca Tessarolo
Many thanks for the suggestion, but the problem is still here... My runtime configuration now is: t...@tex-laptop:~xxx$ jruby -S glassfish Parsing config file: /home/tex/xxx/config/glassfish.yml Arguments: runtimes=1 runtimes_min=1 runtimes_max=1 contextroot=/

[Rails] Re: Date precedence validation (ex. Round Trip travel dates)

2009-08-28 Thread Nik Cool
Any ideas? Kind regards Axinte validates_date_time plug in may help... -- 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] Re: SWF multiple file upload

2009-08-28 Thread Peter De Berdt
On 28 Aug 2009, at 09:34, Nik Cool wrote: Im new to rails i would like to create app with swf file upload with multiple file upload, is that any sample app is available with multiple file uploads plz give me some reference for me Ur's Mahesh Use Acts_As_Attachment plugin

[Rails] Re: No route matches /%20questions/showans/1 with {:method=:g

2009-08-28 Thread Colin Law
2009/8/28 Salman Lada rails-mailing-l...@andreas-s.net: Hi i face this problem when i submit the information while evaluating the a new page in a already done scaffold...the new page is showans..i write the link_to tag like this %= link_to 'Submit', :controller = questions,

[Rails] How to run rake thinking_sphinx:index in test environment ?

2009-08-28 Thread Nilesh Kulkarni
Hi, I tried 'rake thinking_sphinx:index RAILS_ENV=test' but it throws following error F:\test_sarasaves\sarasavesrake thinking_sphinx:index RAILS_ENV=test (in F:/test_sarasaves/sarasaves) Generating Configuration to F:/test_sarasaves/sarasaves/config/ test.sphinx.conf Sphinx 0.9.8-release

[Rails] Re: SWF multiple file upload

2009-08-28 Thread mahesh s
Thank you guys i got the solution with help of ur reference, now im trying to view the file when im clicking the appropriate link i got the result when im try to show the image but i have a problem when im try in to some other file like pdf or doc .etc in my controller i use the following code

[Rails] InvalidAuthenticityToken

2009-08-28 Thread karthik k
Hi guys What does the below line says ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken): -e:2:in `load' -e:2 Please guide me -- Karthik.k Mobile - +91-9894991640 --~--~-~--~~~---~--~~ You received this message

[Rails] Re: Why can't I post in the JRuby mailing list?

2009-08-28 Thread RVince
pyou cant post to it through google groups. You have to go in an physically join their list. The postings APPEAR in google groups, but posting to and replying to posts must be done through their list via emailing u...@jruby.codehaus.org . You can subscribe to their list at:

[Rails] A resource named image gives problems

2009-08-28 Thread Jarl Friis
Hi. I can't be the only one in the world having the wonderful idea to have a resource named image. I have a controller named images_controller I have a route named image, and therefore a helper called image_path(id). But using image_path in an action view erb file gives problems, there

[Rails] how to insert value to the extra field in join model

2009-08-28 Thread Kart
hi all, consider that I'm having 3 models 1)user 2)doc 3)udoc user model=(id,name) has_many:udocs has_many:docs ,through:udocs doc Model=(id,name) has_many:udocs has_many:users ,through:udocs udoc Model=(id,user_id,doc_id,start_date,end_date) belongs_to:user belongs_to;doc Can

[Rails] *Please Help* Cannot save a new user to the database...

2009-08-28 Thread RubyonRails_newbie
Hello, I am following the RailsSpace tutorial and am at the point where I am creating a new user through (user/register) I have added the details into the form: screen_name, email and password. When I click register, I would expect this to be saved (commited) to the database. However – when I

[Rails] Render action inside js template

2009-08-28 Thread Fabio Kreusch
Hello all, I'm trying to create the following: There is a index page that lists some items, and 'new item' button. I want the user to be able to click the button, and with ajax the page will be refreshed to show the new item form. For that, I added a format.js on my controller, and created a

[Rails] Re: how to insert value to the extra field in join model

2009-08-28 Thread Colin Law
2009/8/28 Kart akramwasim1...@gmail.com: hi all,         consider that I'm having 3 models 1)user 2)doc 3)udoc user model=(id,name) has_many:udocs has_many:docs ,through:udocs doc Model=(id,name) has_many:udocs has_many:users ,through:udocs udoc

[Rails] Re: Adding New Column

2009-08-28 Thread Robert Walker
Bashar Abdullah wrote: I think the problem is with the name of the column, :type. It's a reserved. Just to clarify, ActiveRecord assumes a column named type is used for Single Table Inheritance. You can configure the model to tell ActiveRecord to use a different column name for that purpose,

[Rails] Re: *Please Help* Cannot save a new user to the database...

2009-08-28 Thread Colin Law
2009/8/28 RubyonRails_newbie craigwest...@googlemail.com: Hello, I am following the RailsSpace tutorial and am at the point where I am creating a new user through (user/register) I have added the details into the form: screen_name, email and password. When I click register, I would

[Rails] Re: *Please Help* Cannot save a new user to the database...

2009-08-28 Thread RubyonRails_newbie
cheers Colin - i'll try this out. On 28 Aug, 14:26, Colin Law clan...@googlemail.com wrote: 2009/8/28 RubyonRails_newbie craigwest...@googlemail.com: Hello, I am following the RailsSpace tutorial and am at the point where I am creating a new user through (user/register) I have

[Rails] Re: First App- Error 500

2009-08-28 Thread Rick
The error message you're getting indicates that ruby is having a problem loading a dynamic library. From the long error report you posted on Aug 21 it looks like the problem is related to loading the sqlite3 library: /!\ FAILSAFE /!\ Fri Aug 21 12:56:58 -0400 2009 Status: 500 Internal Server

[Rails] partials redrawing

2009-08-28 Thread RVince
I have a select in a partial (_partialInPartial) , which itself is in a partial (_partial). _partialInPartial contains a select. WIthin the select, I have :selected = nil so that there is nothing selected. When I redraw it, I therefore expect that nothing will be selected in it. However, when

[Rails] Re: Open flash chart

2009-08-28 Thread Robert Walker
seja wrote: Now open flash is working very fine, but in firefox i want to take print where i getting only blank page only. Any Idea... Same way is possible to save this flash report as an image. Well, as far as I know Flash won't print. I would guess that Open Flash Chart has a way to ask

[Rails] Re: instance variables added in rails helpers are not available

2009-08-28 Thread Frederick Cheung
On Aug 28, 3:11 pm, Saty Nos rails-mailing-l...@andreas-s.net wrote: %= title % it is showing as '' and after some debugging, looks like @title is not being set. Why are the instance variables added in the helpers not available in the views (templates)? because you didn;t create an

[Rails] Re: Sum won't seem to add the fields?!

2009-08-28 Thread mvp
Hi, I have pasted a simplified version of the problem you are trying to understand. You cannot do a 'sum' on a collection that has a 'nil' as one of its elements. If 'nil' happens to be the first element, you will get the 'NoMethodError' , as the method '+' is called on it (as shown in the error

[Rails] Re: A resource named image gives problems

2009-08-28 Thread Alpha Blue
map.resources :images, :as = 'your_custom_name' You've already read the API about the ActionView helpers so you know it's not something you can use. You can post suggestions in Dev but the likelihood of this being changed is nil. -- Posted via http://www.ruby-forum.com/.

[Rails] Re: rake db:test:clone_structure and related tasks fail

2009-08-28 Thread Thomas Allen
On Aug 28, 3:23 am, Nik Cool rails-mailing-l...@andreas-s.net wrote: rake aborted! wrong number of arguments (2 for 1) /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/tasks/databases.rake: 344:in `recreate_database' Thanks! Thomas do you have test database created ? -- Posted

[Rails] instance variables added in rails helpers are not available

2009-08-28 Thread Saty Nos
I am trying to add some instance variables in helpers like the following: module ApplicationHelper def title=(title) @title = title end def title @title end end and when I assign title in views/pages/index.html.erb like the following: % title = 'Listing Pages' % and try to show it

[Rails] Re: Finding data which, when tweaked, matches.

2009-08-28 Thread Rick
SQL provides a LIKE function for simple pattern matching. Also, both mySql and PostgreSql provide REGEX functions though they may not be identical in use. On Aug 28, 10:30 am, Aldric Giacomoni rails-mailing-l...@andreas- s.net wrote: Say I have a string : 012345678. I have a column in a table

[Rails] Re: *Please Help* Cannot save a new user to the database...

2009-08-28 Thread RubyonRails_newbie
... the strange thing is, the code I have written is axactly the same as that in the railsspace website (http://railsspace.com/4_register/listing-4-20.txt) On 28 Aug, 14:33, RubyonRails_newbie craigwest...@googlemail.com wrote: cheers Colin - i'll try this out. On 28 Aug, 14:26, Colin

[Rails] Finding data which, when tweaked, matches.

2009-08-28 Thread Aldric Giacomoni
Say I have a string : 012345678. I have a column in a table which also stores strings. I want to find all rows which match that string of numbers in that order. That is, 012345678 will match, but 012-34-5678 will, and 012sneeze345bless67you8thanks also will. Do I have to do something like:

[Rails] Re: partials redrawing

2009-08-28 Thread Colin Law
2009/8/28 RVince rvinc...@hotmail.com: I have a select in a partial (_partialInPartial) , which itself is in a partial (_partial). _partialInPartial contains a select. WIthin the select, I have :selected = nil so that there is nothing selected. When I redraw it, I therefore expect that

[Rails] Simple question about collections

2009-08-28 Thread Aldric Giacomoni
Alright, so.. Let's try this: 1) I have a view which one way or another calls a controller action and wants to update a div. 2) This controller action finds a collection of records and does a render :partial with said collection (e.g. : @patients with Patient.last and Patient.first) 3) ...

[Rails] Re: *Please Help* Cannot save a new user to the database...

2009-08-28 Thread Hassan Schroeder
On Fri, Aug 28, 2009 at 5:20 AM, RubyonRails_newbiecraigwest...@googlemail.com wrote: I have added the details into the form: screen_name, email and password. When I click register, I would expect this to be saved (commited) to the database. And there's no specific error in the log? That's

[Rails] Re: First App- Error 500

2009-08-28 Thread Aldric Giacomoni
He is running on Windows. I had to put sqlite3.dll and tclsqlite3.dll in my c:\ruby\bin directory. See if that fixes it. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby

[Rails] Routes problem

2009-08-28 Thread John Mcleod
Hello all, Here's a newbie question (4 weeks and counting). My routes.rb is as below. map.resources :projects, :departments, :users, :admins, :imports, :notes #Below is route in question map.resources :projects, :collection = { :view_all = :get } map.home '', :controller = 'projects', :action

[Rails] emails - html not rendering

2009-08-28 Thread Ritvvij
Hi, i am using ruby 1.8.7 and rails 2.3.3 i can send emails using gmail smtp my config is: ActionMailer::Base.raise_delivery_errors = true ActionMailer::Base.perform_deliveries = true ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.default_charset = 'utf-8'

[Rails] Re: Routes problem

2009-08-28 Thread Rob Biedenharn
On Aug 28, 2009, at 11:34 AM, John Mcleod wrote: Hello all, Here's a newbie question (4 weeks and counting). My routes.rb is as below. map .resources :projects, :departments, :users, :admins, :imports, :notes #Below is route in question map.resources :projects, :collection = { :view_all

[Rails] default_scope and scoped_methods in 2.2.2 ?

2009-08-28 Thread throwern
I am running rails 2.2.2 and cannot upgrade to 2.3 at this time. However, I would like to use a default_scope and so I have installed the default_scope plugin. This works great for standard AR classes but does not carry through Single Table Inheritance without adding the default_scope

[Rails] Re: Routes problem

2009-08-28 Thread John Mcleod
Since I've been learning rails, I thought that routes are the linking of the Controller Object to their Action method. When you set up RESTful routing, you need to add custom or named routes after the default 7. To set up custom or named routes, you use map.connect path/to/view, :controller =

[Rails] Re: InvalidAuthenticityToken

2009-08-28 Thread Philip Hallstrom
What does the below line says ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken): -e:2:in `load' -e:2 Rails tries to protect against invalid form submission by setting an authenticity token. It does this automatically if you use the form helpers,

[Rails] Re: Routes problem

2009-08-28 Thread Himanshu Prakash
Hi John, try this approach: in the Product class add this function- require 'uri' def self.find_custom arg object = self.new object.id = URI.escape(arg) object end and in the controller try calling as: Product.find_custom(params[:id]).view_all just try it, and let me know. On

[Rails] Re: 1 Form 2 Models 2nd Model Requres 1st Model ID

2009-08-28 Thread Ar Chron
google rails 1 form 2 models -- 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] Re: Routes problem

2009-08-28 Thread James Englert
ROR will attempt to find routes from the top of the file first and then move on to the rest of the file. It would seem that you have listed projects twice: map.resources :*projects*, :departments, :users, :admins, :imports, :notes #Below is route in question map.resources :*projects*,

[Rails] Re: rake db:test:clone_structure and related tasks fail

2009-08-28 Thread Thomas Allen
It appears that this is coming from my installed lib/mysql_adapter.rb which has an incorrect signature for recreate_database (and probably for other methods as well), so I think I have what I need to solve the problem now. Thomas On Aug 28, 9:50 am, Thomas Allen thomasmal...@gmail.com wrote:

[Rails] Re: Finding data which, when tweaked, matches.

2009-08-28 Thread Rick
Not quite, in PostgreSql you could use SELECT * FROM tablename WHERE fieldname SIMILAR TO '[-a-z]*0[-a-z]*1[- a-z]*2[-a-z]*3[-a-z]*4[-a-z]*5[-a-z]*6[-a-z]*7[-a-z]*8[-a-z]*' to push all the filtering into the query. On Aug 28, 11:57 am, Aldric Giacomoni rails-mailing-l...@andreas- s.net wrote:

[Rails] Re: Routes problem

2009-08-28 Thread Ar Chron
John Mcleod wrote: Hello all, Here's a newbie question (4 weeks and counting). My routes.rb is as below. map.resources :projects, :departments, :users, :admins, :imports, :notes #Below is route in question map.resources :projects, :collection = { :view_all = :get } map.home '',

[Rails] Re: partials redrawing

2009-08-28 Thread RVince
Colin, I think what I am asking is, should a redraw of a partial be the equivalent of a refresh of that partial only? (and if so, would that hold for a partial in a partial, or is that considered bad form in the rails world?) -RVince On Aug 28, 10:56 am, Colin Law clan...@googlemail.com wrote:

[Rails] Passenger and Parallels running Vista?

2009-08-28 Thread elliottg
I have searched around a fair amount and I have yet to find any info on getting Paralles to work with Passenger. My dev box is running Leopard, then I have Parallels set up to run Vista just for IE really. With Mongrel I could access it thru Parallels at 192.168.1.100:3000 in IE. For instance

[Rails] Re: instance variables added in rails helpers are not available

2009-08-28 Thread Saty Nos
Frederick Cheung wrote: On Aug 28, 3:11�pm, Saty Nos rails-mailing-l...@andreas-s.net wrote: %= title % it is showing as '' and after some debugging, looks like @title is not being set. Why are the instance variables added in the helpers not available in the views (templates)?

[Rails] Re: getting error NoMethodError in Book#new

2009-08-28 Thread deostroll
Have you run all the necessary database migrations?  Does the books table have the title and price columns? I started all over. When I run the rake db:migrate I get this error: $rake db:migrate (in /home/deostroll/Desktop/sites/library) == 20090828225043 Books: migrating

[Rails] new Ajax.Request + :complete = + javascript

2009-08-28 Thread Abhishek shukla
Hello friends Action i am making a ajax request from a javascript function and i want to have a spinner ::complete = Element.hide('spinner');, But not able to insert it, Is there any one who have an idea? Thanks Abhis --~--~-~--~~~---~--~~ You received this

[Rails] Cucmber

2009-08-28 Thread Douglas Elliott
A client of mine located in Atlanta is looking for a strong Business Analyst with knowledge of Ruby on Rails and Cucumber. This would be a Full Time position and they would pay relocation. I am not proficient in Cucumber so I cannot do this job but I figured someone here might. If anyone is

[Rails] Re: Routes problem

2009-08-28 Thread E. Litwin
Another tip is to run rake routes to see all the available routes. On Aug 28, 9:26 am, James Englert englert.ja...@gmail.com wrote: ROR will attempt to find routes from the top of the file first and then move on to the rest of the file. It would seem that you have listed projects twice:

[Rails] Re: *Please Help* Cannot save a new user to the database...

2009-08-28 Thread Colin Law
2009/8/28 RubyonRails_newbie craigwest...@googlemail.com: ... the strange thing is, the code I have written is axactly the same as that in the railsspace website (http://railsspace.com/4_register/listing-4-20.txt) Could you bottom post rather than top? That is the convention on this

[Rails] Error connecting to Sybase (odd)

2009-08-28 Thread Aldric Giacomoni
I have activerecord-sybase-adapter installed -- and Sybase itself, so I have the drivers. In irb or in the rails console, this works: ActiveRecord::Base.establish_connection( :adapter = “sybase”, :database = “mydb”, :host = “myhost”, :myport = myport, :username = “read_only”, :password =

[Rails] Re: render :partial erroring with wrong extension

2009-08-28 Thread Eric
Of course it was the one thing I didn't check and was not in the error: a leading space in the partial's filename. A twitchy typo, and a proportional font didn't help either. On Aug 27, 12:46 pm, Eric ericgh...@gmail.com wrote: I'm thinking that for some reason Rails isn't seeing a content_type

[Rails] Re: Finding data which, when tweaked, matches.

2009-08-28 Thread Aldric Giacomoni
Rick Lloyd wrote: SQL provides a LIKE function for simple pattern matching. Also, both mySql and PostgreSql provide REGEX functions though they may not be identical in use. So are you suggesting that I do something like this: string = params[:social] # magic on string until string =

[Rails] Re: Passenger and Parallels running Vista?

2009-08-28 Thread Frederick Cheung
On Aug 28, 5:56 pm, elliottg x...@simplecircle.net wrote: I have searched around a fair amount and I have yet to find any info on getting Paralles to work with Passenger. My dev box is running Leopard, then I have Parallels set up to run Vista just for IE really. With Mongrel I could

[Rails] Time.today?

2009-08-28 Thread Fernando Perez
Hi, Time.today fails on my server and works on my dev machine, both run Rails 2.3.3. What's going on? -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

[Rails] Re: getting error NoMethodError in Book#new

2009-08-28 Thread deostroll
Okay don't worry I got that...and its fixed. On Aug 28, 9:55 pm, deostroll deostr...@gmail.com wrote: Have you run all the necessary database migrations?  Does the books table have the title and price columns? I started all over. When I run the rake db:migrate I get this error: $rake

[Rails] Re: Time.today?

2009-08-28 Thread Colin Law
2009/8/28 Fernando Perez rails-mailing-l...@andreas-s.net: Hi, Time.today fails on my server and works on my dev machine, both run Rails 2.3.3. What's going on? Are you sure you are not confusing it with Date.today? I was not aware that there is a Time.today. There is a Time.now. Colin

[Rails] Re: Time.today?

2009-08-28 Thread Fernando Perez
Are you sure you are not confusing it with Date.today? I was not aware that there is a Time.today. There is a Time.now. Colin On my dev Machine: $ ./script/console Loading development environment (Rails 2.3.3) Time.now = Fri Aug 28 22:51:16 0200 2009 Time.today = Fri Aug 28 00:00:00

[Rails] Re: Stored Procedures MYSQL and Rails 2.3.2

2009-08-28 Thread E. Litwin
Try extending mysql_adapter.rb and add this method: def select_sp(sql, name = nil) rows = select(sql, name = nil) while (@connection.more_results?()) @connection.next_result() end return rows end Then call the SP using this method from your

[Rails] REPL in a browser.

2009-08-28 Thread chris_the_frog
Hi! I am a computer science student and I have a problem I just can't seem to find an answer to. I would like to embed a read-eval-print- loop in a website. Essentially, I'd like a window that mimics a console: the user types in some random text, it is processed, a value is returned and

[Rails] Re: how to avoid (Net::SMTPFatalError) 555 5.5.2 Syntax error

2009-08-28 Thread Shan Huang
Thank you so much, I had the same problem and it worked. On Jul 31, 2:26 pm, Chris Schumann rails-mailing-l...@andreas-s.net wrote: Santosh Turamari wrote:     @from = #{sender}a...@bbb.com If I submit an email id, It is giving error as (Net::SMTPFatalError) 555 5.5.2 Syntax error.

[Rails] Re: Passenger and Parallels running Vista?

2009-08-28 Thread Hassan Schroeder
On Fri, Aug 28, 2009 at 9:56 AM, elliottgx...@simplecircle.net wrote: I have searched around a fair amount and I have yet to find any info on getting Paralles to work with Passenger. My dev box is running Leopard, then I have Parallels set up to run Vista just for IE really. With Mongrel I

[Rails] Re: Error: uninitialized constant MysqlCompat::MysqlRes

2009-08-28 Thread Kyle Fox
To fix this, specify ARCHFLAGS when you install the 'mysql' gem: sudo env ARCHFLAGS=-arch x86_64 gem install mysql -- --with-mysql- config=/usr/local/mysql/bin/mysql_config On Aug 27, 12:07 pm, Caleb Cullen rails-mailing-l...@andreas-s.net wrote: Martin J. wrote: Hi, I installed the

[Rails] Re: Passenger and Parallels running Vista?

2009-08-28 Thread elliottg
Parallels just blew up on me. Once I get it back online, I'll try what you have recommended. Thanks Frederick! On Aug 28, 1:13 pm, Frederick Cheung frederick.che...@gmail.com wrote: On Aug 28, 5:56 pm, elliottg x...@simplecircle.net wrote: I have searched around a fair amount and I have

[Rails] Nil object nightmare

2009-08-28 Thread Anthony Gardner
I'm having a real problem with nil objects in a view I'm playing with. if I type ... %= debug lesson.lesson_register.attendees % I get the following displayed in the browser - !ruby/object:Attendee attributes: enrollee_id: 25 created_at: 2009-08-27 15:10:41 updated_at:

[Rails] Re: 1 Form 2 Models 2nd Model Requres 1st Model ID

2009-08-28 Thread brianp
I can handle building two models from 1 form. It's getting the id from the first saved model and inserting it in the second and rolling back the whole transaction if anything goes wrong that is the problem. On Aug 28, 9:43 am, Ar Chron rails-mailing-l...@andreas-s.net wrote: google rails 1 form

[Rails] Objects in Views

2009-08-28 Thread Dhruva Sagar
Hi everyone, I have recently experienced a strange behavior (strange from my knowledge) in rails. In my controllers 'new' action, I am creating a few instance variables in the following manner : @controllerModel = ControllerModel.new @model1 = Model1.all @model2 = Model2.all in my 'new' view,

[Rails] Association extension method

2009-08-28 Thread Bryan Ash
In my application a user working at a dropzone can manipulate transactions against customer accounts. Here's my models: class Transaction ActiveRecord::Base belongs_to :account end class Account ActiveRecord::Base belongs_to :dropzone has_many :transactions end class Dropzone

[Rails] Re: has HAML gone mainstream?

2009-08-28 Thread pharrington
On Aug 28, 7:38 pm, Jeff Pritchard rails-mailing-l...@andreas-s.net wrote: I've been looking for a new gig lately, and have noticed that an alarming (to me, since I don't yet speak HAML) number of the openings mention HAML as a required or desired skill. I noticed HAML out of the corner of

[Rails] Re: plugin for running a timer based application

2009-08-28 Thread Franco Catena
Take a look at the Rufus Scheduler http://rufus.rubyforge.org/rufus-scheduler/ I hope this help you, regards. Franco Catena. On Aug 27, 4:59 pm, Rukku Bala rails-mailing-l...@andreas-s.net wrote: Hi, I am trying to achieve the following.. wondering if there is any way to achieve this..

[Rails] Re: REPL in a browser.

2009-08-28 Thread pharrington
On Aug 28, 4:44 pm, chris_the_frog cgdjm...@gmail.com wrote: Hi! I am a computer science student and I have a problem I just can't seem to find an answer to. I would like to embed a read-eval-print- loop in a website. Essentially, I'd like a window that mimics a console: the user types in

[Rails] Re: Time.today?

2009-08-28 Thread pharrington
On Aug 28, 4:56 pm, Fernando Perez rails-mailing-l...@andreas-s.net wrote: Hi, Time.today fails on my server and works on my dev machine, both run Rails 2.3.3. What's going on? -- Posted viahttp://www.ruby-forum.com/. Whats are the respective Ruby versions? Time.today exists on 1.8.7, but

[Rails] Re: Association extension method

2009-08-28 Thread David A. Black
Hi -- On Fri, 28 Aug 2009, Bryan Ash wrote: In my application a user working at a dropzone can manipulate transactions against customer accounts. Here's my models: class Transaction ActiveRecord::Base belongs_to :account end class Account ActiveRecord::Base belongs_to :dropzone

[Rails] Re: emails - html not rendering

2009-08-28 Thread heimdull
how do you send the email? Is there a controller action that sends the email? On Aug 28, 10:19 am, Ritvvij ritvi...@gmail.com wrote: Hi, i am using ruby 1.8.7 and rails 2.3.3 i can send emails using gmail smtp my config is: ActionMailer::Base.raise_delivery_errors = true

[Rails] Re: Association extension method

2009-08-28 Thread Bryan Ash
David, thank you so much, that was the correct answer. My complete association extension is now: class Dropzone ActiveRecord::Base has_many :transactions, :through = :accounts do def limited_to(transaction) scope = Transaction.scoped({ :conditions = ['accounts.dropzone_id = ?',

[Rails] Re: routing and has_many

2009-08-28 Thread sax
It sounds like your routes are set up alright, but yeah, you'll still need to add code so your action knows how to handle it. In your ProductsController#index action, you probably have something like this? @products = Product.all Since you have category_id in the params, something like this

[Rails] tags with spaces in it issue - acts_as_tagged_on_steriods

2009-08-28 Thread Rails List
I am using acts_as_tagged_on_steriods for tagging which works well for single word tags. When clicking on tags with multiple words (tags with spaces in them - ex: ruby rails), spaces are also displayed in URL. How do I eliminate those spaces in URL?. I tried using permalink, by creating a Tag