[Rails] Re: RE: Ruby on Rails Training

2010-03-19 Thread dare ruby
Jamal Soueidan wrote: Don't forget http://railsenvy.com/ http://railsenvy.com/ http://railsenvy.com/ http://railsenvy.com/ mail me at 9994604873 or contact me at 9994604873 -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google

[Rails] Some logic problem

2010-03-19 Thread Hemant Bhargava
Hello champs, I am in dilemma here. I have structure like this:- EmployeeA | EmployeeBEmployeeC EmployeeD | | EmployeeE

[Rails] Re: free sms gateway in india

2010-03-19 Thread dare ruby
bramu...@gmail.com wrote: I tried with it but no luck its not working. Any one worked on the sms service in india?? On May 13, 11:23�pm, Marnen Laibow-Koser rails-mailing-l...@andreas- hi ramu, if you found the solution. could you please me to do the same. -- Posted via

[Rails] Re: Any help on SMS and payment gateway in India

2010-03-19 Thread dare ruby
bramu...@gmail.com wrote: are you able to find out the free sms gateway in india?? On Dec 28 2007, 6:24�pm, Atul Gupta rails-mailing-l...@andreas-s.net Dear atul and Ramu, could able to find the solution for sms and payment gateway. If so please help me to do the same or else we work

Re: [Rails] Some logic problem

2010-03-19 Thread Josh Cheek
On Fri, Mar 19, 2010 at 12:03 AM, Hemant Bhargava li...@ruby-forum.comwrote: Hello champs, I am in dilemma here. I have structure like this:- EmployeeA | EmployeeBEmployeeC EmployeeD

Re: [Rails] migration

2010-03-19 Thread David Chua
Care to post your migration script? I suspect you might be creating a table instead of doing a 'add_column David On Mar 19, 2010 12:58 PM, Rajkumar Surabhi li...@ruby-forum.com wrote: Hi all, I have migrated with some tables in my application. After some days i need to add few more tables to

[Rails] Re: Some logic problem

2010-03-19 Thread Hemant Bhargava
Hi josh, Thanks for a quickie, But how to get rid of this loop .. Josh Cheek wrote: Perhaps you have a loop. EmployeeX manages EmployeeY and EmployeeY manages EmployeeX -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups

[Rails] Re: RJS error: TypeError: element is null

2010-03-19 Thread Salil Gaikwad
Hi All, I find it out why it happens because I didn't close div above the chat_area properly. the only thing i did isclose the div and it works like a magic, neways thanks to all Reagrds, Salil Gaikwad -- Posted via http://www.ruby-forum.com/. -- You received this message because you are

Re: [Rails] Facebook style photo uploader

2010-03-19 Thread Kevin Elliott
Darren, You should take a look at swfupload. It is a combination of javascript and Flash so that you can upload in the background, report on the progress, etc. -Kevin On Thu, Mar 18, 2010 at 1:00 PM, Ruby on Rails: Talk dazzaroo...@gmail.comwrote: Hi Does anyone know of a plugin or

[Rails] Re: Rail Quickstart Guide: Always receiving template missing errors.

2010-03-19 Thread DmitryPush
Are you sure you don't have a typo, and name of your template looks exactly like that app/views/posts/index.html.erb ? if it's not could you provide here your posts controller, routs and index view On Mar 19, 3:14 am, Stone vtgbe...@gmail.com wrote: Hello, Upon going through the rails

Re: [Rails] migration

2010-03-19 Thread kannav rajeev
No he is making add coulmn in the Existing one migration file . i think so On Fri, Mar 19, 2010 at 12:01 PM, David Chua zhc...@gmail.com wrote: Care to post your migration script? I suspect you might be creating a table instead of doing a 'add_column David On Mar 19, 2010 12:58 PM,

[Rails] how to preserve the value from the other action controller

2010-03-19 Thread Yudi Soesanto
Hi, Anyone knows how to preserve the value from the previous action controller? For example, - I have 2 controllers: foo_one and foo_two. - on action foo_one, I have variable @my_value - How I can keep the value of @my_value so I can use it on the second controller foo_two def foo_one

[Rails] Re: Facebook style photo uploader

2010-03-19 Thread Marcin Seroczynski
Or You could simply take a look at ready to use projects from github like: http://github.com/bbenezech/papermill http://github.com/jbasdf/uploader Which need only some stylings in CSS to have same lookfeel like Facebook. -Martin On 19 Mar, 08:28, Kevin Elliott ke...@phunc.com wrote: Darren,

[Rails] how to add current time as default value

2010-03-19 Thread Rajkumar Surabhi
hi all, by using timestamps we can create created_at and updated_on columns to our tables. But i dont wnat the columns in my table and i want to add my own column which datatype is timestamp and that must take current_timestamp or now as default value. how to do it re -- Posted via

Re: [Rails] Re: Rails + Mysql

2010-03-19 Thread Yudi Soesanto
Jose, What rails version and mysql version are you using? Do this: *rails -v* *mysql --version* I have the same issue as your after I upgraded to rails 2.2.2 and finally, I got it work What I did, I reinstall mysql and it worked ok now. Yudi Soesanto 2010/3/18 José Luis Romero

[Rails] Re: Facebook style photo uploader

2010-03-19 Thread DmitryPush
also you can take a look on Uploadify it's not like in Facebook but it's pretty simple to install and use. demo: http://www.uploadify.com/demo/ Rails and uplodify: http://casperfabricius.com/site/2009/03/26/uploading-multiple-files-with-progress-indicator-using-jquery-flash-and-rails/

Re: [Rails] undefined method error despite the fact it doesn't exist

2010-03-19 Thread Colin Law
On 18 March 2010 23:43, John Merlino li...@ruby-forum.com wrote: Hey all, I'm getting a strange, unexplainable error. It returns undefined method `render_index_row_action_pprove'. I performed a search on my entire application and no such method exists. There is a

Re: [Rails] getting data from a through table

2010-03-19 Thread Michael Pavling
On 19 March 2010 03:49, dan mr.dan.ma...@gmail.com wrote: now imagine that attribute_objects also contains a rating so when i say, object.attributes, id like to get the rating too that doesnt seem to be possible with the has_many relationship if i could force the join on the object attributes

[Rails] Re: Send Java script variable to a controller

2010-03-19 Thread DmitryPush
Here is non ajax method(but ajax pretty the same): var f = document.createElement('form'); f.style.display = 'none'; this.parentNode.appendChild(f); f.method = 'POST'; #or get f.action = this.href; var m = document.createElement('input'); m.setAttribute('type', 'hidden');

[Rails] how to specify relationship between these models

2010-03-19 Thread Tom Mac
Hi I have a user model which I used as authlogic. What I need to implement is I have to add staff also to the system. And I designed tables like users - name email phone etc staffs -- city state user_id My question is is this the right approach? And if yes

Re: [Rails] Re: Some logic problem

2010-03-19 Thread Colin Law
On 19 March 2010 06:39, Hemant Bhargava li...@ruby-forum.com wrote: Hi josh, Thanks for a quickie, But how to get rid of this loop .. Josh Cheek wrote: Perhaps you have a loop. EmployeeX manages EmployeeY and EmployeeY manages EmployeeX Remove it from the database and put in validations

Re: [Rails] Re: RJS error: TypeError: element is null

2010-03-19 Thread Colin Law
On 19 March 2010 07:04, Salil Gaikwad li...@ruby-forum.com wrote: Hi All, I find it out why it happens because I didn't close div above the chat_area properly. the only thing i did isclose the div and it works like a magic, neways thanks to all I suggest installing the html validator add-in

[Rails] Re: how to specify relationship between these models

2010-03-19 Thread Veera Sundaravel
Let say you are having staff, directors and managers as part of your system, and their details will be in users table so let say we can build inheritance based relationship like below: Class User ActiveRecord::Base end Class Staff User end Class Director User end Class Manager User end

[Rails] Re: Re: Some logic problem

2010-03-19 Thread Hemant Bhargava
Thanks colin. Resolved it as well. Cheers .. !! Colin Law wrote: Remove it from the database and put in validations to stop it happening again. The infinite recursion could also be caused by an employee managing himself. Colin -- Posted via http://www.ruby-forum.com/. -- You

[Rails] Re: how to add current time as default value

2010-03-19 Thread Loganathan Ganesan
Rajkumar Surabhi wrote: hi all, by using timestamps we can create created_at and updated_on columns to our tables. But i dont wnat the columns in my table and i want to add my own column which datatype is timestamp and that must take current_timestamp or now as default value. how to do

Re: [Rails] TEKsystems - Ruby on Rails Job Opportunities

2010-03-19 Thread kannav rajeev
hi sir i am interested in this job *And* skills i have RoR one year experience rails 2.3.5 mysql 5.41.XX-dbms Apache-web server windows Tortoise-SVN Topics Resolved On the Current Project : * migration , sphinx , MVC , OOP and more on more bugs removal and enhancements *reply will

Re: [Rails] Re: how to add current time as default value

2010-03-19 Thread kannav rajeev
Time.now On Fri, Mar 19, 2010 at 2:44 PM, Loganathan Ganesan li...@ruby-forum.comwrote: Rajkumar Surabhi wrote: hi all, by using timestamps we can create created_at and updated_on columns to our tables. But i dont wnat the columns in my table and i want to add my own column which

Re: [Rails] how to preserve the value from the other action controller

2010-03-19 Thread Andy Jeffries
On 19 March 2010 08:12, Yudi Soesanto soesa...@gmail.com wrote: Hi, Anyone knows how to preserve the value from the previous action controller? For example, - I have 2 controllers: foo_one and foo_two. - on action foo_one, I have variable @my_value - How I can keep the value of @my_value

[Rails] Speed up loading rails and running specs on MacBook Pro

2010-03-19 Thread Andi Schacke
Hi all, some time ago I found out that loading the rails environment and running my specs was much much faster on my iMac than on my MacBook Pro (of course the hardware does explain a bit of that difference). I had compiled my ruby1.8.7 on my MacBook Pro with --enable-shared -- enable-pthread

Re: [Rails] how to preserve the value from the other action controller

2010-03-19 Thread Yudi Soesanto
Thanks for your reply. I will do research on memcached Yudi Soesanto On Fri, Mar 19, 2010 at 5:36 AM, Andy Jeffries andyjeffr...@gmail.comwrote: On 19 March 2010 08:12, Yudi Soesanto soesa...@gmail.com wrote: Hi, Anyone knows how to preserve the value from the previous action controller?

[Rails] Plugins questions

2010-03-19 Thread Yudi Soesanto
Hi, I want to create a ruby on rails application that has user login and user role. What is a good plugin to use? Thanks for your response in advance. Yudi Soesanto -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group,

[Rails] Passing parameters to a view and render in inline iframe on the same page

2010-03-19 Thread shiran
Hi, I'm developing a rails app and need to do the following. My main page (main.html.erb) has a small form and a submit button. Also it has an inline iframe. When click the submit button I need to pass some parameters to another content page (content.html.erb) to create dynamic contents and

Re: [Rails] Plugins questions

2010-03-19 Thread mahesh s
hi yudi acl9 plug-in will help you for role based user authentication git url for the plug-in http://github.com/be9/acl9 thanks Mahesh.s On Fri, Mar 19, 2010 at 3:41 PM, Yudi Soesanto soesa...@gmail.com wrote: Hi, I want to create a ruby on rails application that has user login and user

[Rails] Call helper function in test file

2010-03-19 Thread Hemant Bhargava
Do anybody know how to call helper function in test files? I mean i have written a function in application_helper.rb and i want to call it in one of my test files.. test/integration/abc.rb .. Have any idea ? -- Posted via http://www.ruby-forum.com/. -- You received this message because you

Re: [Rails] Plugins questions

2010-03-19 Thread Yudi Soesanto
Thanks for your reply I read from http://github.com/be9/acl9#readme and it said that Acl9 is a authorization solution, so you will need to implement authentication by other means. I need authentication plugins too. So what is the better one? Thanks, Yudi Soesanto On Fri, Mar 19, 2010 at 6:21

[Rails] undefined method move_higher

2010-03-19 Thread rani
hi i installed acts_as_list plugin into my application but i am getting the error when i am trying to access the methods as move_to_bottom,move_higher,move_lower etc. how can i solve this issue -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

Re: [Rails] Plugins questions

2010-03-19 Thread mahesh s
Hi Yudi Have you tried with restful authentication if not try with that http://agilewebdevelopment.com/plugins/restful_authentication giturl: http://github.com/technoweenie/restful-authentication Thanks Mahesh.s On Fri, Mar 19, 2010 at 4:11 PM, Yudi Soesanto soesa...@gmail.com wrote: Thanks

Re: [Rails] Plugins questions

2010-03-19 Thread nagarani gajjala
hi thanks for the reply i already did with restful routing i am new to rails development it is giving the same error for me can you give any more advice On Fri, Mar 19, 2010 at 4:20 PM, mahesh s mahesh...@gmail.com wrote: Hi Yudi Have you tried with restful authentication if not try with

Re: [Rails] Plugins questions

2010-03-19 Thread Yudi Soesanto
Thanks mahesh. I will try using restful. Thanks, Yudi Soesanto On Fri, Mar 19, 2010 at 7:01 AM, nagarani gajjala gajjala.nagar...@gmail.com wrote: hi thanks for the reply i already did with restful routing i am new to rails development it is giving the same error for me can you give any

[Rails] Re: how to specify relationship between these models

2010-03-19 Thread Tom Mac
Hi Thanks for your reply. This I have already thought of. But one thing I can't understand is why everything is stored in a single table say users here? Can we store each items for say staff,director etc to there own tables? Or Am I wrong? Tom -- Posted via http://www.ruby-forum.com/.

Re: [Rails] undefined method move_higher

2010-03-19 Thread Bala
have you restarted your server? On Fri, Mar 19, 2010 at 4:15 PM, rani gajjala.nagar...@gmail.com wrote: hi i installed acts_as_list plugin into my application but i am getting the error when i am trying to access the methods as move_to_bottom,move_higher,move_lower etc. how can i solve

Re: [Rails] Re: how to specify relationship between these models

2010-03-19 Thread Michael Pavling
On 19 March 2010 11:43, Tom Mac li...@ruby-forum.com wrote: why everything is stored in a single table That's called Single Table Inheritance (STI) Can we store each items for say staff,director etc  to there own tables? Or Am I wrong? You're not wrong; you can do it with different tables if

Re: [Rails] Re: Re: render a Google Chart to a file

2010-03-19 Thread Rob Biedenharn
On Mar 18, 2010, at 9:00 PM, Adam Ziemba wrote: Colin Law wrote: open(http://chart.apis.google.com/chart#{CGI.escape('? cht=bvgchbh=achd=s:vttustychs=500x300chxt=x,ychxl=0:|Sun|Mon| Tue|Wed|Thu|Fri|Sat|1:|0|2|4|6|8|10|12')}) do |chart| File.open('chart.png', 'w') {|f| f.write

Re: [Rails] undefined method move_higher

2010-03-19 Thread nagarani gajjala
yes but no use On Fri, Mar 19, 2010 at 5:27 PM, Bala bala.mutha...@gmail.com wrote: have you restarted your server? On Fri, Mar 19, 2010 at 4:15 PM, rani gajjala.nagar...@gmail.com wrote: hi i installed acts_as_list plugin into my application but i am getting the error when i am trying

[Rails] Re: Re: how to specify relationship between these models

2010-03-19 Thread Ar Chron
Michael Pavling wrote: Personally, I tend to keep users as a table for authentication-related info, and in my people table (I'd tend to avoid STI for people) I keep personal info, link to a user record, and assign a role which is used for handling permissions. I'd rather have lots of

Re: [Rails] how to specify relationship between these models

2010-03-19 Thread Andy Jeffries
My question is is this the right approach? And if yes what would be the relation from users to staffs? I think we can say staff belongs_to user But what is the reverse? user has_one staff Cheers, Andy -- You received this message because you are subscribed to the Google

[Rails] Recognize path inside a helper

2010-03-19 Thread anler
Hi Folks, I need to get a hash of params from an url path inside a helper. The way I've been doing this was through recognize_path in RouteSet but now throw me an Exception: MethodNotAllowed(I think beacuse the path is an admin path?) There is another way? thanks -- You received this message

[Rails] Re: calling a method from a different class's view

2010-03-19 Thread Adam Stegman
On Mar 18, 5:32 pm, Frederick Cheung frederick.che...@gmail.com wrote: A more railsy way of doing it would be for player2 to be an association and to define a full name method on Player ie def full_name  firstName + lastName end and then your view would look like %= h

[Rails] Re: Problem about each in rails

2010-03-19 Thread Adam Stegman
Or more concisely (because it's fun): %=h @posts.map(:name).to_sentence % which will make it Tom, Dick, and Harry. On Mar 18, 12:46 pm, tomkurt tom.maeckelber...@gmail.com wrote: If you want the names seperated by comma, try this: %=h @posts.map{|p| p.name}.join(', ') % On 18 mrt, 17:48,

[Rails] Re: MailChimp API recommendations?

2010-03-19 Thread Florent2
On 18 mar, 07:31, Hassan Schroeder hassan.schroe...@gmail.com wrote: This page - http://www.mailchimp.com/api/downloads/ - lists five gems/plugins for interacting with the MailChimp service, and for all I know there are others. Anyone have a personal recommendation? Based on any of stability,

[Rails] Modern tagging plugin

2010-03-19 Thread Andy Jeffries
What's the current recommendation for ActiveRecord model tagging gems? Is acts_at_taggable still state of the art (I haven't needed to this for a long time). Cheers, Andy -- Andy Jeffries http://andyjeffries.co.uk/ #rubyonrails #mysql #jquery Registered address: 64 Sish Lane, Stevenage,

Re: [Rails] Plugins questions

2010-03-19 Thread Colin Law
On 19 March 2010 10:50, mahesh s mahesh...@gmail.com wrote: Hi Yudi Have you tried with restful authentication I believe authlogic is generally considered the better solution currently. Colin if not try with that http://agilewebdevelopment.com/plugins/restful_authentication giturl:

[Rails] Re: Ruby 1.9 loading rails is slow

2010-03-19 Thread ChrisT
Rails 3.0.0.beta And as far as loading rails, I mean anything involving the 'rails' command. rails console, rails server, rails generate - all 30+ seconds. Anything involve the rake tasks rails ships with: rake db:migrate, rake test:units - 30+ seconds. I honestly haven't even gotten into actually

[Rails] Re: Rails development processes running very slow

2010-03-19 Thread Aldric Giacomoni
ChrisT wrote: My Gemfile: source 'http://gemcutter.org' source 'http://gems.github.com' gem gemcutter, 0.4.1 # Rails3 beta gem rails, 3.0.0.beta # ActiveRecord requires a database adapter. gem ruby-mysql # Gems required for the AftershockHarness gem watir, 1.6.5 gem firewatir,

[Rails] Re: undefined method error despite the fact it doesn't exist

2010-03-19 Thread John Merlino
Billee D. wrote: Hi John, I would check your source code in app/views/resources/index.html.haml (or a view helper for that view) for a typo since it's looking for a method named something similar to what you have (e.g change render_index_row_action_pprove to render_index_row_action_approve)

[Rails] Re: undefined method error despite the fact it doesn't exist

2010-03-19 Thread Aldric Giacomoni
John Merlino wrote: and this is what I get: trunk/log/development.log:ActionView::TemplateError (undefined method `render_index_row_action_pprove' for #ActionView::Base:0x10c5ca938) on line #20 of app/views/resources/index.html.haml: So, what's on line #20 of

Re: [Rails] PAM Authentication

2010-03-19 Thread tommy xiao
http://andrem.wordpress.com/2008/08/10/pam-ruby-rpam/ 2010/3/19 Evaldo Kalbermatter li...@ruby-forum.com Hello everyone! I'm trying to use PAM in my application and found the gem of Authlogic and rpam. I could not install either the lack of information. Someone has managed to do it? Google's

[Rails] Re: Problem about each in rails

2010-03-19 Thread Grick Zh
Michael Pavling wrote: On 18 March 2010 16:33, Grick Zh li...@ruby-forum.com wrote: %=h @posts.each {|p| p.name} % why this code return serial strings like #Post:0x3a893e8 ? Because you're outputting the return value of the whole loop, not the output of each block. If you run that command

Re: [Rails] Re: undefined method error despite the fact it doesn't exist

2010-03-19 Thread Colin Law
On 19 March 2010 14:43, John Merlino li...@ruby-forum.com wrote: Billee D. wrote: Hi John, I would check your source code in app/views/resources/index.html.haml (or a view helper for that view) for a typo since it's looking for a method named something similar to what you have (e.g change

[Rails] Re: Problem about each in rails

2010-03-19 Thread Grick Zh
Adam Stegman wrote: Or more concisely (because it's fun): %=h @posts.map(:name).to_sentence % which will make it Tom, Dick, and Harry. I'm newbie,can't understand (:name),but i know this code is skillful. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are

[Rails] Re: Problem about each in rails

2010-03-19 Thread Aldric Giacomoni
Grick Zh wrote: Adam Stegman wrote: Or more concisely (because it's fun): %=h @posts.map(:name).to_sentence % which will make it Tom, Dick, and Harry. 1) @posts.map This will return a new enumerable, replacing each element of @posts with whatever the block says 2) :name Shortcut to

[Rails] Ruby on Rails tutorials for beginners are available here

2010-03-19 Thread pankaj
Hello Everyone, I have started my blog at http://railsguru.org. Besides other stuff on Rails, the main focus of the site will be to help beginners to learn Ruby and Rails and build the fundamentals. Regards, Pankaj Bhageria, Tech Lead, Sumeru Software Solutions. http://www.railsguru.org

[Rails] selective migrations possible?

2010-03-19 Thread Grary
Hi, I prefer to keep one migration per model, but lately I'm adding data that's expensive to drop every time I change my models. How do I db:drop and db:migrate only selected tables/files? Basically, I want to ignore certain tables and migrations altogether during certain development phases.

[Rails] Re: Deprecations

2010-03-19 Thread Benoit Caccinolo
Thanks for the link. A good use of ack-grep on the rails gems: rails-2.0.5 actionmailer-2.0.5 actionpack-2.0.5 activerecord-2.0.5 activeresource-2.0.5 activesupport-2.0.5 gave me what I was looking for. B. On Mar 10, 10:21 pm, Taywin tboon...@gmu.edu wrote: Not sure if you are looking for.

[Rails] Re: selective migrations possible?

2010-03-19 Thread Ar Chron
Grary wrote: Hi, I prefer to keep one migration per model, but lately I'm adding data that's expensive to drop every time I change my models. So don't do that. You've chosen to fight a (very) hard battle if that's the manner in which you are trying to use migrations. Down the road, when

[Rails] Re: selective migrations possible?

2010-03-19 Thread Grary
OK. Also, I was just thinking: if I create models and then, without a migration, create corresponding tables, I have sidestepped the problem, such as it is. Anyway, I've registered your skepticism. Thanks, Grar On Mar 19, 12:40 pm, Ar Chron li...@ruby-forum.com wrote: Grary wrote: Hi, I

[Rails] Re: selective migrations possible?

2010-03-19 Thread Grary
I've registered your skepticism. Yes, I can't see that the benefit of satisfying my preference here outweighs the burden. That said, I still think it's a drag to sift through multiple migration files. Thanks, Grar On Mar 19, 12:40 pm, Ar Chron li...@ruby-forum.com wrote: Grary wrote: Hi,

Re: [Rails] selective migrations possible?

2010-03-19 Thread Colin Law
On 19 March 2010 16:07, Grary grary.sti...@gmail.com wrote: Hi, I prefer to keep one migration per model, but lately I'm adding data that's expensive to drop every time I change my models. It is considered a bad idea to seed data using migrations, if that is what you are doing. Google for

[Rails] Re: selective migrations possible?

2010-03-19 Thread Grary
Yes, I've certainly given the role of seed data due consideration in another context, but it's not relevant in the case at hand, I don't think. In that case at hand, the large data set I seek to include in my development is used for autocompletion and by business logic on the model side. Thanks,

[Rails] auto_complete plugin on rails 2.3.5

2010-03-19 Thread Guido
Hi, this is my first post. I have run: $ ruby script/plugin -v install auto_complete but the result is: Plugin not found: [auto_complete] #Errno::ENOENT: No such file or directory - /dev/null I have also try to run: $ ruby script/plugin -v list and the result is: Discovering plugins in

[Rails] Regarding template installation and working.

2010-03-19 Thread Kamalesh Kumar
Hi All, I have recently started working on Ruby on Rails and I am amazed with the features it gives. I want to know how are templates installed on Rails for web applications that we develop and also where are the templates available. Please help me out. Regards, Kamalesh -- You received this

[Rails] How to save rails generated pages to a file on the server

2010-03-19 Thread Fritz Trapper
My show view of a data form is finished and now I want to give a possibility to download this view as a pdf file. I would like to use HTMLDOC to convert the html text to pdf. My idea: save the html text to a temporary folder and run HTMLDOC. But how can I save the html text to a file? -- Posted

[Rails] Re: Rails development processes running very slow

2010-03-19 Thread ChrisT
Either way it's slow. with the bundle locked or not. On Mar 19, 8:27 am, Aldric Giacomoni li...@ruby-forum.com wrote: ChrisT wrote: My Gemfile:  source 'http://gemcutter.org'  source 'http://gems.github.com' gem gemcutter, 0.4.1 # Rails3 beta gem rails, 3.0.0.beta # ActiveRecord

Re: [Rails] How to save rails generated pages to a file on the server

2010-03-19 Thread Philip Hallstrom
On Mar 19, 2010, at 11:43 AM, Fritz Trapper wrote: My show view of a data form is finished and now I want to give a possibility to download this view as a pdf file. I would like to use HTMLDOC to convert the html text to pdf. My idea: save the html text to a temporary folder and run HTMLDOC.

[Rails] Re: How to save rails generated pages to a file on the server

2010-03-19 Thread Fritz Trapper
Philip Hallstrom wrote: render_to_string http://api.rubyonrails.org/classes/ActionController/Base.html#M000659 That puts it into a local variable anyway... if you can then pass that to htmldoc you're on your way. Not sure how this might affect any paths to CSS/images for HTMLDOC though.

Re: [Rails] Re: How to save rails generated pages to a file on the server

2010-03-19 Thread Philip Hallstrom
render_to_string http://api.rubyonrails.org/classes/ActionController/Base.html#M000659 That puts it into a local variable anyway... if you can then pass that to htmldoc you're on your way. Not sure how this might affect any paths to CSS/images for HTMLDOC though. Thanks. CSS is no problem

[Rails] Re: selective migrations possible?

2010-03-19 Thread Jeff Lewis
Hi Grar, If you really want to call a single migration, you could do something like: $ ./script/console ... require #{RAILS_ROOT}/db/migrate/100_create_foos.rb = [CreateFoos] CreateFoos.down == CreateFoos: reverting = -- drop_table(:foos) ...

[Rails] How can I consume SOAP Web Service?

2010-03-19 Thread Jorge alejandro Mendoza torres
Please, I need to know the way to consume SOAP Web Service. I've seen some examples but I don't understand how I can do it. From the client side, I need to save the information into database. Please, somebody answer. I need your help. Thanks and greetings. Jorge Mendoza -- Posted via

[Rails] convert app to production

2010-03-19 Thread John Wu
Hi, How to change rails 2.3.5 app to production? I couldn't find ENV[RAILS_ENV] under config/environment.rb 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

[Rails] Re: How to save rails generated pages to a file on the server

2010-03-19 Thread Jeff Lewis
You might want to check out: http://code.google.com/p/wkhtmltopdf/ http://www.princexml.com/ wkhtmltopdf is free. prince will cost you. prince has better css print-related implementation coverage at this time, but wkhtmltopdf can be a very good alternative depending on the needs of your

[Rails] Re: getting data from a through table

2010-03-19 Thread dan
thanks for the suggestions attributes is a self inherited table so i need to get them i order of top level and down this is part of my current solution has_many :objects_attributes do def top_level all(:joins = :attribute, :conditions = attributes.parent_id is null) end def

[Rails] Re: Re: How to save rails generated pages to a file on the server

2010-03-19 Thread Fritz Trapper
Prawn seems to need a fixed number of columns in tables, so I'll take a look on wkhtmltopdf. -- 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: How can I consume SOAP Web Service?

2010-03-19 Thread Robert Walker
Jorge alejandro Mendoza torres wrote: Please, I need to know the way to consume SOAP Web Service. I've seen some examples but I don't understand how I can do it. This is the only project I'm aware of still supporting SOAP in Rails: http://github.com/datanoise/actionwebservice I don't have

Re: [Rails] Ruby on Rails tutorials for beginners are available here

2010-03-19 Thread Massimiliano Bertinetti
Good work! Thanks! Max-B Il giorno ven, 19/03/2010 alle 08.52 -0700, pankaj ha scritto: Hello Everyone, I have started my blog at http://railsguru.org. Besides other stuff on Rails, the main focus of the site will be to help beginners to learn Ruby and Rails and build the fundamentals.

[Rails] Re: How can I consume SOAP Web Service?

2010-03-19 Thread Frederick Cheung
On Mar 19, 8:59 pm, Robert Walker li...@ruby-forum.com wrote: Jorge alejandro Mendoza torres wrote: Please, I need to know the way to consume SOAP Web Service. I've seen some examples but I don't understand how I can do it. This is the only project I'm aware of still supporting SOAP in

[Rails] Re: How to save rails generated pages to a file on the server

2010-03-19 Thread Jeff Lewis
Since I started using tools (like prince/wkhtmltopdf) to generate pdfs from html/css for web app projects that need to gen pdfs, I've never gone back to using low-level pdf-gen'ing libs/tools (like prawn). Just requires so much less work. By the way, you may also want to look into using

[Rails] Re: convert app to production

2010-03-19 Thread Robert Walker
John Wu wrote: How to change rails 2.3.5 app to production? I couldn't find ENV[RAILS_ENV] under config/environment.rb That's been gone from config/environment.rb for quite a while now. It was never really the proper way to setup the environment anyway AFAIK. What you'll want to do is setup

[Rails] Re: How can I consume SOAP Web Service?

2010-03-19 Thread Robert Walker
Frederick Cheung wrote: On Mar 19, 8:59�pm, Robert Walker li...@ruby-forum.com wrote: Rails, and I don't know if it's being moved forward to Rails 3. If you're just making soap requests you don't need actionwebservice - I've used the soap libraries that ship as part of the ruby standard

[Rails] I18n and Rails 2.3.5

2010-03-19 Thread Rodrigo Felix
Has anybody faced any problem to use i18n on Rails 2.3.5? Sometimes when I call the *t* function, it works fine, but for some keys, it does not work and I have no clue why it is going on. I do have a .yml with correct keys and values. For example, in this ( http://dev.promine.com.br/promine)

[Rails] Preparing an Asynchronous Response with ActionController

2010-03-19 Thread Tom Shealy
Hello, I was wondering if there's an easy way to make ActionController render a response in an asynchronous background process. I have a large object graph which takes over a minute to serialize in amf: render :amf = myData I'd like to render() the amf serialization in a workling process and

[Rails] Re: no such file to load -- sqlite3 Rails

2010-03-19 Thread Rafael Giacon
Robert Huberdeau wrote: Ehtsham Abbas wrote: M. Figueiroa wrote: In my case I just downloaded the sqllite3.dll from the http://www.sqlite.org/download.html (This is a DLL of the SQLite library without the TCL bindings. The only external dependency is MSVCRT.DLL.) and then copied it to the

[Rails] Re: selective migrations possible?

2010-03-19 Thread Grary
Thanks Jeff. That's a lot to digest, but I will and likely try it, too. Grar On Mar 19, 4:03 pm, Jeff Lewis jeff.bu...@gmail.com wrote: Hi Grar, If you really want to call a single migration, you could do something like: $ ./script/console ... require

[Rails] Envoi de SMS

2010-03-19 Thread Fernando Perez
Bonjour, Quelqu'un envoie des sms à partir de son application? Vous avez des fournisseurs à conseiller. Le plus simple c'est d'envoyer à partir d'un email puis le fournisseur transforme ça en sms. Niveau tarif ça va du simple au triple apparement. Merci pour vos suggestions -- Posted via

[Rails] Re: Rail Quickstart Guide: Always receiving template missing errors.

2010-03-19 Thread Stone
Thanks for your time. I'm almost sure there is no typo on my part. I'm actually starting to think there's something wrong with the environment as I have created small ror apps before without any issues and am somewhat experiences w/ rails. Having gone through the rails quickstart guide again, I

[Rails] Re: Envoi de SMS

2010-03-19 Thread Fernando Perez
Fernando Perez wrote: Bonjour, Quelqu'un envoie des sms à partir de son application? Vous avez des fournisseurs à conseiller. Le plus simple c'est d'envoyer à partir d'un email puis le fournisseur transforme ça en sms. Niveau tarif ça va du simple au triple apparement. Merci pour vos

[Rails] Re: selective migrations possible?

2010-03-19 Thread Fernando Perez
I prefer to keep one migration per model It's a bad an unmaintainable idea. I did that when I was a beginner in RoR. Simply create migrations to add/remove columns to existing tables. When you have too many migration files, simply remove them. The whole schema is saved in schema.rb --

[Rails] Re: auto_complete plugin on rails 2.3.5

2010-03-19 Thread Fernando Perez
Someone can help me? Just grab it from github and drop it in vendor/plugins, there is no special install step to run. -- 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

[Rails] Re: Rails + Mysql

2010-03-19 Thread José Luis Romero
*mysql --version mysql Ver 14.14 Distrib 5.1.44, for redhat-linux-gnu (i386) using readline 5.1 *rails -v Rails 2.3.5 On Mar 19, 4:19 am, Yudi Soesanto soesa...@gmail.com wrote: Jose, What rails version and mysql version are you using? Do this: *rails -v* *mysql --version* I have the

[Rails] current_user Authlogic Service.rb

2010-03-19 Thread Liquid Fury
Hi, I am using Authlogic Weborb to remote from as3. Is it possible to access current_user, which is defined in a helper method in the application controller, in a Service class. Thank you in advance, John. -- Posted via http://www.ruby-forum.com/. -- You received this message because you

Re: [Rails] Re: Rails + Mysql

2010-03-19 Thread Yudi Soesanto
Jose, Uninstall gem mysql first (*sudo gem uninstall mysql*) and then install it again with this command: $ sudo gem install mysql -- --with-mysql-config=/usr/bin/mysql_config *for reference:* Check on this link http://wiki.rubyonrails.org/database-support/mysql, maybe it can help. If it still

  1   2   >