[Rails] Re: How to extend a helper using plugin?

2011-10-07 Thread ganaware
Is the problem solved? I found that the following codes works as expected. redmine/vendor/plugins/redmine_x/init.rb: require 'redmine' require 'dispatcher' module XPatch def self.included(base) # :nodoc: if !base.method_defined?(:parse_redmine_links_without_patch)

[Rails] [heroku] Error H10 (App crashed)

2011-10-07 Thread sagar
Hi i am developing an application which is working perfectly in development server ... but it is crashing when deploy it to heroku .. these are the logs related to my app i am using rails 3.1.0 is it compulsory to install postgresql adapter gem in localhost... Please help me out with

[Rails] Re: link_to parameters

2011-10-07 Thread Frederick Cheung
On Oct 6, 5:09 pm, Walter Lee Davis wa...@wdstudio.com wrote: On Oct 6, 2011, at 11:59 AM, Walter Lee Davis wrote: is a more convenient way of writing link_to 'text', polymorphic_path(blah) or link_to 'text', blah_path(blah) (assuming you have resources :blahs). Both of those two _path

Re: [Rails] [heroku] Error H10 (App crashed)

2011-10-07 Thread Martin Wawrusch
From your error message (a little bit buried): Please install the postgresql adapter: `gem install activerecord- postgresql-adapter` (pg is not part of the bundle. Add it to Gemfile.) which means that you need to add gem 'pg' to your gemfile On Thu, Oct 6, 2011 at 12:32 PM, sagar

Re: [Rails] [heroku] Error H10 (App crashed)

2011-10-07 Thread Fernando Almeida
The log says: (pg is not part of the bundle. Add it to Gemfile.) You made this? 2011/10/6 sagar sujitsagar1...@gmail.com Hi i am developing an application which is working perfectly in development server ... but it is crashing when deploy it to heroku .. these are the logs related to my

[Rails] Re: problem with dynamic values in popup box

2011-10-07 Thread Pab
well it will show the size of the array.. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to

[Rails] 403 Error Dont know whats wrong.

2011-10-07 Thread Kaushalya K.
Hi, I am quite new to ruby and am programming an application to send sms using rest_client gem. I so far have code on one of my modules which tries to send an sms to a number. It gives the 403 error - RestClient::Forbidden in SMSController#index 403 Forbidden Rails.root:

[Rails] Re: Problem in SessionHelper

2011-10-07 Thread Frederick Cheung
On Oct 2, 6:54 pm, rails_learner ashokjai...@gmail.com wrote:         def sign_out                 cookies.delete (:remember_token)                 self.current_user = nil         end private         def user_from_remember_token         User.authenticate_with_salt (*remember_token)    

Re: [Rails] Re: problem with dynamic values in popup box

2011-10-07 Thread Colin Law
On 7 October 2011 07:56, Pab prabu.ne...@gmail.com wrote: well it will show the size of the array.. Is that supposed to be an answer to one of the questions previously asked? You have given no indication of which one, nor have you answered some other questions. Please reply again to

[Rails] Re: problem with dynamic values in popup box

2011-10-07 Thread Pab
there is no problem with my code if i try that with some partial page, data listed perfectly, but only in case of popbox data is not displayed thanks -pab -- 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: 403 Error Dont know whats wrong.

2011-10-07 Thread Frederick Cheung
On Oct 7, 10:01 am, Kaushalya K. li...@ruby-forum.com wrote: Hi, I am quite new to ruby and am programming an application to send sms using rest_client gem. I so far have code on one of my modules which tries to send an sms to a number. It gives the 403 error - RestClient::Forbidden in

[Rails] Re: Inexpensive Rails Hosting for Small Business Client

2011-10-07 Thread trans
On Oct 6, 5:18 pm, jason white jasonwhite...@gmail.com wrote: depending on the level of traffic, i recommend heroku I've heard this recommendation before, but isn't the minimum cost of heroku $36/mo ? -- You received this message because you are subscribed to the Google Groups Ruby on

Re: [Rails] Re: Inexpensive Rails Hosting for Small Business Client

2011-10-07 Thread Martin Wawrusch
No, it is 0. There website is confusing, they are aware of this and are hopefully clarifying this, On Fri, Oct 7, 2011 at 5:39 AM, trans transf...@gmail.com wrote: On Oct 6, 5:18 pm, jason white jasonwhite...@gmail.com wrote: depending on the level of traffic, i recommend heroku I've

[Rails] Re: Redmine MySQL rake command issue

2011-10-07 Thread Andre Flory
Thanks guys for your responses and I appologize for the delay in getting back here, I only work on this once a week. I just got past that error, it was a problem with my password, inside my database file for redmine, database.yml. Now I am getting this error: C:\redmine-1.2.1rake db:migrate

[Rails] Rails 3.1 string conversion errors

2011-10-07 Thread Rick
I'm seeing many errors when installing Rails 3.1 and other gems. These are all showing up in the ri/rdoc portion of the install sequence and look like this: gem install rdoc Depending on your version of ruby, you may need to install ruby rdoc/ ri data: = 1.8.6 : unsupported =

Re: [Rails] Re: Inexpensive Rails Hosting for Small Business Client

2011-10-07 Thread Danaka Kahn
On Fri, Oct 7, 2011 at 8:44 AM, Martin Wawrusch mar...@wawrusch.com wrote: No, it is 0. There website is confusing, they are aware of this and are hopefully clarifying this, On Fri, Oct 7, 2011 at 5:39 AM, trans transf...@gmail.com wrote: On Oct 6, 5:18 pm, jason white

[Rails] will_paginate + RJS error

2011-10-07 Thread Pedro
Hi there! I need some help, I'm new to rjs + will_paginate and don't know how to solve this problem. The application apparently is working fine, the partial is rendered by the javascript, the pagination works fine, but sometimes, when I hit the next page number or next , it reders the code

[Rails] Re: Postgresql adapter not working

2011-10-07 Thread Luís de Sousa
Hi Peter, That not exactly the same issue, I'd say an authoritative install guide for Ubuntu is definitely needed, especially since a direct install from the repositories won't work. I used this guide which got Rails and Ruby to work on Ubuntu 10.10 64- bit:

[Rails] Re: Postgresql adapter not working

2011-10-07 Thread Luís de Sousa
That seems useful, Thank you Bob. Luís On Oct 6, 4:37 pm, Rob Biedenharn r...@agileconsultingllc.com wrote: On Oct 6, 2011, at 9:48 AM, Peter Vandenabeele wrote: tl;drhttps://gist.github.com/1261571 At Gaslight Software, we are helping a group at a local high school   develop a simple web

[Rails] Re: Postgresql adapter not working

2011-10-07 Thread Luís de Sousa
On Oct 6, 6:16 pm, Romain Maz BILLOIR billo...@gmail.com wrote: Yes: to create a postgresql based application, you need to use the -d postgresql argument, if you forgot it, One can only forget things one has learned in the past. I'll stick to postgres-pr for now, it is recommended in several

[Rails] API request with email in address path possible?

2011-10-07 Thread Heinz Strunk
Hey, I'm currently implementing a API for a website which is supposed to support following requests: /api/users/id/1 /api/users/email/t...@example.org ... Of course the email address with its dot causes an error because if the .org which is interpreted as file format. How can I pass an email

[Rails] [ANN] Rails 3.1.1 has been released!

2011-10-07 Thread Santiago Pastorino
Hi everyone, Rails 3.1.1 has been released. ## CHANGES *ActionMailer* * No changes *ActionPack* * stylesheet_link_tag('/stylesheets/application') and similar helpers doesn't throw Sprockets::FileOutsidePaths exception anymore [Santiago Pastorino] * Ensure default_asset_host_protocol is

Re: [Rails] API request with email in address path possible?

2011-10-07 Thread Martin Wawrusch
Interesting question. First of all I think you need to change this a bit into /api/users/1 as the canonical url and perhaps add a route like /api/users/search?email=youremail which redirects to the canonical url. On Fri, Oct 7, 2011 at 8:31 AM, Heinz Strunk li...@ruby-forum.com wrote: Hey,

[Rails] Re: API request with email in address path possible?

2011-10-07 Thread Heinz Strunk
Oh, yeah... I actually added the /id/ part by accident. So the only way to pass an email is by a paramter like ...?email=xxx? -- 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

Re: [Rails] Re: API request with email in address path possible?

2011-10-07 Thread Martin Wawrusch
It might be possible to pass it as part of the uri, but you do not want to do that because it would create a second url representing the same resource. Basically, you want to have one url per resource to make the API easy to use, and for things that are actually queries it is better to use

[Rails] Recommended SOAP library

2011-10-07 Thread Leonardo Mateo
Hi guys, I have to deal with SOAP web services. I've been googleing around a bit, and I can see 3 major topics: Savon, 'soap/wsdlDriver and SOAP4R. All points that Savon is the one, but I just wanted to be sure. Does anyone have any tip on this? Thanks a lot in advance. -- Leonardo Mateo.

[Rails] Re: API request with email in address path possible?

2011-10-07 Thread Heinz Strunk
makes sense, thanks a lot for the explanation :) -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this

Re: [Rails] Errors while installing sqlite3 for Rails

2011-10-07 Thread Ruby Student
On Thu, Oct 6, 2011 at 4:20 PM, Colin Law clan...@googlemail.com wrote: On 6 October 2011 21:09, Ruby Student ruby.stud...@gmail.com wrote: I'm sorry, I thought I said on my post that I tried the suggestion from the failure messages. Anyway, this is what I got: port install sqlite3

[Rails] How to host Ruby Rails application in https .

2011-10-07 Thread Sasi
How to make my ruby on rails application to work on with https protocol . My application rails version - 2.3.8 . I use phusion passenger and apache as server . Kindly help me how to make it up . -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

Re: [Rails] Errors while installing sqlite3 for Rails

2011-10-07 Thread Leonardo Mateo
On Fri, Oct 7, 2011 at 1:38 PM, Ruby Student ruby.stud...@gmail.com wrote: On Thu, Oct 6, 2011 at 4:20 PM, Colin Law clan...@googlemail.com wrote: On 6 October 2011 21:09, Ruby Student ruby.stud...@gmail.com wrote: I'm sorry, I thought I said on my post that I tried the suggestion from

Re: [Rails] How to host Ruby Rails application in https .

2011-10-07 Thread Leonardo Mateo
On Fri, Oct 7, 2011 at 2:04 PM, Sasi ssasidara...@gmail.com wrote: How to make my ruby on rails application to work on with https protocol .  My application rails version - 2.3.8 . I use phusion passenger and apache as server . Kindly help me how to make it up . That's not Rails specific. You

Re: [Rails] Errors while installing sqlite3 for Rails

2011-10-07 Thread Ruby Student
Leonardo, Yes, the executable are on my path. However, you suggested to type *node*, which was the only one I had not installed. I downloaded and built *node* and now I am past that issue. However, NOW I have other issues. This is like pulling teeth. If I did not want to learn Rails so badly, I

[Rails] custom copyright text to ruby file automatically

2011-10-07 Thread Nike Mike
How to automate the copyright text for each newly created files in ruby projects or with rails framework. -- 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] simple query

2011-10-07 Thread Misha Ognev
What is SQL query, which retrieves last 10 records from database? I can't find it in guides.rubyonrails.org -- 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: Recommended SOAP library

2011-10-07 Thread Nick Klauer
Savon worked great for my use case, and I know of a couple other people that used it for integrating with other APIs pretty easily. You probably won't go wrong picking this one. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To view

[Rails] Ruby adoption statistics

2011-10-07 Thread Andrew
Hello, I work for a company that uses PHP. In my free time I write Ruby apps. My manager recently discovered Heroku (which I had been using for a while) which spawned a discussion about eventually switching languages to start doing Ruby development (which would be awesome for me). However, my

Re: [Rails] Errors while installing sqlite3 for Rails

2011-10-07 Thread Ruby Student
I downloaded rake-0.9.2 and I was able to create the DB: *rake db:create*. Now, let me see what else I will find. Thanks to everyone who tried to help. On Fri, Oct 7, 2011 at 2:00 PM, Ruby Student ruby.stud...@gmail.com wrote: Leonardo, Yes, the executable are on my path. However, you

Re: [Rails] Ruby adoption statistics

2011-10-07 Thread Bill Walton
Hi Andrew, On Fri, Oct 7, 2011 at 1:34 PM, Andrew misbehav...@gmail.com wrote: Do you know where I can find articles/statistics on Ruby adoption It's going to be difficult to get good data. The biggest reason, IMHO, is that companies that do adopt RoR are going to be doing so for the

Re: [Rails] Ruby adoption statistics

2011-10-07 Thread Kevin Bedell
Specifically to address Ruby being a dying language: I find ohloh.net to be a great source of information on topics like this. http://www.ohloh.net/p/ruby Ruby: Source tree: http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/ - Is approaching 1 million lines of code and growing. -

[Rails] Re: Heroku application error

2011-10-07 Thread Zach S.
I also ran into the same error after following the instructions when following the instructions in Ruby on Rails Tutorial: Learn Rails by Example http://ruby.railstutorial.org/chapters/beginning#top by Michael Hartl. The problem is that Heroku doesn't support the SQLite. The solution is to

[Rails] Re: DevKit version wrong?

2011-10-07 Thread Barney
On Oct 6, 4:46 pm, Roy Situmorang roy.situmor...@gmail.com wrote: I'm not sure if the following step can help but I suggest you to try. Open your command shell and navigate to the DevKit installation folder. Enter and run the following command: *  devkitvars* Then install the gem:   *gem

[Rails] Why does this work?

2011-10-07 Thread Jonathan Telfer
I've been working through the Depot application to get back into Rails after a few years doing other things. While I was looking at some functional tests earlier I started thinking about this: put :update, id: @user.to_param, user: @input_attributes why doesn't the id: @... part throw an

[Rails] Re: Why does this work?

2011-10-07 Thread Frederick Cheung
On Oct 7, 7:45 pm, Jonathan Telfer jntel...@googlemail.com wrote: I've been working through the Depot application to get back into Rails after a few years doing other things. While I was looking at some functional tests earlier I started thinking about this: put :update, id: @user.to_param,

[Rails] Re: How to host Ruby Rails application in https .

2011-10-07 Thread Sasi
Thanks pal .. Using multiple virtual hosts in a single apache im to configure the apache in https make my application to run in https. VirtualHost *:8080 ServerName somename.com Options FollowSymLinks RewriteEngine On RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^.*$

[Rails] Re: How to host Ruby Rails application in https .

2011-10-07 Thread Sasi
Thanks pal. Using a single apache with multiple virtual host im able to achieve https and run my run application . VirtualHost *:8080 ServerName somename.com Options FollowSymLinks RewriteEngine On RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]

Re: [Rails] simple query

2011-10-07 Thread Nick Demeschenko
select * from table_name sort by some_column asc/desc limit 10 2011/10/7 Misha Ognev li...@ruby-forum.com What is SQL query, which retrieves last 10 records from database? I can't find it in guides.rubyonrails.org -- Posted via http://www.ruby-forum.com/. -- You received this message

Re: [Rails] custom copyright text to ruby file automatically

2011-10-07 Thread Leonardo Mateo
On Fri, Oct 7, 2011 at 3:10 PM, Nike Mike li...@ruby-forum.com wrote: How to automate the copyright text for each newly created files in ruby projects or with rails framework. For Rails you can create your own generators[1]. For other Ruby projects, I guess it depends on how you create your

[Rails] Re: simple query

2011-10-07 Thread Misha Ognev
Thanks! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to