Re: [Rails] testing Rails

2012-08-10 Thread Colin Law
On 11 August 2012 06:26, sameena Khan wrote: > no am running 2.3.8 Just be aware then that following a tutorial that does not match the version of rails you are using can be difficult, as whenever something does not work you do not know whether you have done something wrong or it is just that the

Re: [Rails] PayPal

2012-08-10 Thread hanish jadala
thanks On Fri, Aug 10, 2012 at 7:29 PM, Philipp Fehre wrote: > You should try ActiveMerchant (http://activemerchant.org/) works great > for me here and paypal integreation doesn't get any easier. > > cheers > > > On Aug 10, 2012, at 2:35 PM, honey ruby > wrote: > > > hi all im trying to impleme

Re: [Rails] testing Rails

2012-08-10 Thread sameena Khan
no am running 2.3.8 On Fri, Aug 10, 2012 at 11:00 PM, Hassan Schroeder < hassan.schroe...@gmail.com> wrote: > On Fri, Aug 10, 2012 at 6:32 AM, Khan > wrote: > > hi all im trying to follow this link > > http://www.tutorialspoint.com/ruby-on-rails-2.1/rails-unit-testing.htmto > > learn testing. i

Re: [Rails] validate_format_of message

2012-08-10 Thread Colin Law
On 9 August 2012 17:06, tomkins wrote: > I have validates_format_of :name, :with => *my regex*, :message => "That's > wrong" > The validation works but the message does not get displayed when the user > enters invalid data. > Does anyone have any ideas how to fix it? What have you got in the vi

[Rails] Re: rescue_from ActionController::RoutingError

2012-08-10 Thread Fearless Fool
This is posted years after the fact, but just in case anyone arrives via a web search: The rescue_from method shown above will NOT catch routing errors in Rails 3.1 and Rails 3.2. In particular, this won't work: # file: app/controllers/application_controller.rb class ApplicationControlle

[Rails] Re: button_to with image

2012-08-10 Thread Tim Shaffer
If the button is to submit a form, you can use image_tag_submit http://api.rubyonrails.org/classes/ActionView/Helpers/FormTagHelper.html#method-i-image_submit_tag Otherwise, you can just use link_to(image_tag(...)) -- You received this message because you are subscribed to the Google Groups "

[Rails] button_to with image

2012-08-10 Thread Tim Slattery
I'm calling button_to in my page, and it renders a form with a submit button just fine. But what I'd really like is instead of https://groups.google.com/groups/opt_out.

Re: [Rails] Eager Load Grandchilden w/o Children

2012-08-10 Thread Bill Walton
Hi Tyler, On Thu, Aug 9, 2012 at 2:32 PM, t.pickett66 wrote: > I have several models that are all linked together in a time > tracking/billing system ala: > > class Claim < AR::B > has_many :appointments > > def student > @student ||= Student.joins(student_appointments: > :claim).where('

Re: [Rails] testing Rails

2012-08-10 Thread Hassan Schroeder
On Fri, Aug 10, 2012 at 6:32 AM, Khan wrote: > hi all im trying to follow this link > http://www.tutorialspoint.com/ruby-on-rails-2.1/rails-unit-testing.htm to > learn testing. i got this error > undefined method `fixtures' for BookControllerTest:Class (NoMethodError) And, for whatever reason, y

[Rails] Earlier verions work around for "XSS Vulnerability in strip_tags" missing

2012-08-10 Thread Peter Galiovsky
Hello, the rubyonrails-security announcement for CVE-2012-3465 "XSS Vulnerability in strip_tags" mentions that a work around for earlier versions should be attached, but there's none, only patches for 3.0 series and up. Is the work around available? If so, where can I get hold of it? Thanks

[Rails] validate_format_of message

2012-08-10 Thread tomkins
I have validates_format_of :name, :with => *my regex*, :message => "That's wrong" The validation works but the message does not get displayed when the user enters invalid data. Does anyone have any ideas how to fix it? Thanks. -- You received this message because you are subscribed to the Goog

[Rails] How to include ActionView::Helpers::FormTagHelper in Asset Pipeline processing

2012-08-10 Thread Cyprian Kowalczyk
Hi Group, I have a script.js.coffee.erb file where I have small HTML template and I already am using image_tag helper. I would also liket to use form tag helpers in there. How to include ActionView::Helpers::FormTagHelper in Asset Pipeline processing? kind regards, Cyprian -- You received thi

[Rails] Custom DML and schema.rb

2012-08-10 Thread samsaffron
Cross post from Stack Overflow ( http://stackoverflow.com/questions/11894180/how-does-one-correctly-add-custom-sql-dml-in-migrations ) I had a situation today where I wanted to add a partial postgres index to a table in a migration. Naturally this kind of stuff is not possible yet in rails u

[Rails] [JOB] Seeking Ruby on Rails Dev. for ongoing part time development!

2012-08-10 Thread Howser99
Hi All, We are a company based in Melbourne, Australia looking for a remote developer to assist our experienced technical lead in the development and maintenance of our ROR web application. The position would require approx 30 hours per week initially with ongoing work of between 10-15 hours. M

[Rails] Eager Load Grandchilden w/o Children

2012-08-10 Thread t.pickett66
I have several models that are all linked together in a time tracking/billing system ala: class Claim < AR::B has_many :appointments def student @student ||= Student.joins(student_appointments: :claim).where('`claims`.`id` = ?',self.id).group('`students`.`id`').first #second draft

[Rails] Re: Junior Rails developer looking for remote work.

2012-08-10 Thread Howser99
Hi Agis, Do you have much experience with Coffeescript / Backbone JS? On Friday, August 10, 2012 9:12:53 PM UTC+10, Agis A. wrote: > > I'm doing Ruby & Rails development for almost a year now and I'm loving > it! I've also done 2 commercial projects (their source is in private github > repos, I

[Rails] [JOBS] Part Time Rails Assisting to Technical Lead

2012-08-10 Thread Howser99
Hi All, We are a small records management company based in Melbourne, Australia.We are looking to a reasonably experienced ROR developer to assist our technical lead in the ongoing develop and maintenance of our web application, The position will initall involve 25+ hours per week, slowing to

[Rails] testing Rails

2012-08-10 Thread Khan
hi all im trying to follow this link http://www.tutorialspoint.com/ruby-on-rails-2.1/rails-unit-testing.htm to learn testing. i got this error undefined method `fixtures' for BookControllerTest:Class (NoMethodError) i followed as it was mentioned thanks -- You received this message because y

Re: [Rails] PayPal

2012-08-10 Thread Philipp Fehre
You should try ActiveMerchant (http://activemerchant.org/) works great for me here and paypal integreation doesn't get any easier. cheers On Aug 10, 2012, at 2:35 PM, honey ruby wrote: > hi all im trying to implement paypal in my app can any one suggest me the > best paypal method to go for.

Re: [Rails] submit() not working on first click....it is working on second click

2012-08-10 Thread Colin Law
On 10 August 2012 13:37, rubyrails9 wrote: > can I reload thickbox automatically? I have no idea even what thickbox is, sorry. Colin > > > On Fri, Aug 10, 2012 at 6:00 PM, rubyrails9 wrote: >> >> I have used link_to tag already and button tag also... my major >> requirement is that I n

Re: [Rails] submit() not working on first click....it is working on second click

2012-08-10 Thread rubyrails9
can I reload thickbox automatically? On Fri, Aug 10, 2012 at 6:00 PM, rubyrails9 wrote: > I have used link_to tag already and button tag also... my major > requirement is that I need to show them in thickbox... > > > On Fri, Aug 10, 2012 at 5:59 PM, rubyrails9 wrote: > >> Actually I hav

[Rails] PayPal

2012-08-10 Thread honey ruby
hi all im trying to implement paypal in my app can any one suggest me the best paypal method to go for. cheers -- 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 u

Re: [Rails] submit() not working on first click....it is working on second click

2012-08-10 Thread rubyrails9
I have used link_to tag already and button tag also... my major requirement is that I need to show them in thickbox... On Fri, Aug 10, 2012 at 5:59 PM, rubyrails9 wrote: > Actually I have now install foot note gem in my development mode Here > what I am getting is that, data is inserted

Re: [Rails] submit() not working on first click....it is working on second click

2012-08-10 Thread rubyrails9
Actually I have now install foot note gem in my development mode Here what I am getting is that, data is inserted into cart, but it is not showing me in thick box (*localhost:3000*) as my thick box pop-ups at my home page... It is showing me in *localhost:3000/cart*... Its actual link... pr

[Rails] Junior Rails developer looking for remote work.

2012-08-10 Thread Agis A.
I'm doing Ruby & Rails development for almost a year now and I'm loving it! I've also done 2 commercial projects (their source is in private github repos, I can provide it if needed) and I'm currently looking for a job. Thanks. Github: http://github.com/Agis Blog: http://agis.heroku.com Twitter

Re: [Rails] submit() not working on first click....it is working on second click

2012-08-10 Thread Colin Law
On 10 August 2012 11:26, rubyrails9 wrote: > I mean, product id is passed... but its not showing me cart page... So when you click the button the first time you see it calling an action in the log, but that action is not doing what you expect? In that case, as I said before, have a look at the R

Re: [Rails] submit() not working on first click....it is working on second click

2012-08-10 Thread rubyrails9
I mean, product id is passed... but its not showing me cart page... On Fri, Aug 10, 2012 at 3:54 PM, rubyrails9 wrote: > that all I have done...I am not getting anything in development log > Any other suggestion?? > > > On Fri, Aug 10, 2012 at 2:55 PM, Colin Law wrote: > >> On 10 August 201

Re: [Rails] submit() not working on first click....it is working on second click

2012-08-10 Thread rubyrails9
that all I have done...I am not getting anything in development log Any other suggestion?? On Fri, Aug 10, 2012 at 2:55 PM, Colin Law wrote: > On 10 August 2012 09:48, rubyrails9 wrote: > > I am developing an e-commerce site.. and now I got stuck at one point.. > When > > I submit the form

[Rails] Application Error

2012-08-10 Thread thil
Hi all, I am getting the Application Error in rails latest version 3.2.7. In local its works fine when using rails s -e production. but moved to heroku application is not working i could not able to view the log because heroku logs saying `initialize': Connection refused - connect(2) (Errno

[Rails] Missing earlier versions work around for "XSS Vulnerability in strip_tags"

2012-08-10 Thread Peter Galiovsky
The rubyonrails-security announcement for CVE-2012-3465 "XSS Vulnerability in strip_tags" mentions that a work around for earlier versions should be attached, but there's none, only patches for 3.0 series and up. Is the work around available? If so, where can I get hold of it? Thanks in advance,

Re: [Rails] submit() not working on first click....it is working on second click

2012-08-10 Thread Colin Law
On 10 August 2012 09:48, rubyrails9 wrote: > I am developing an e-commerce site.. and now I got stuck at one point.. When > I submit the form ,it doesn't submits on the first click, and i need to give > a second click to get it working... I have used anchor tag to submit my data > bcoz I want to s

[Rails] submit() not working on first click....it is working on second click

2012-08-10 Thread rubyrails9
I am developing an e-commerce site.. and now I got stuck at one point.. When I submit the form ,it doesn't submits on the *first click*, and i need to give a second click to get it working... I have used anchor tag to submit my data bcoz I want to show the data inside thickbox(iframe)... View fi

[Rails] Set session on jQuery.load function

2012-08-10 Thread Aashish Kiran
Hi, I have a strange problem. Scenario: When loading an x page. I am making an ajax call in jQuery to server 'latest' action. Now, when I set a session in 'latest' action. To check check created session I made another ajax request to same 'latest' action. Here created session is nil. code: ---

Re: [Rails] gsub appearing in xml

2012-08-10 Thread Colin Law
On 10 August 2012 03:28, Alexander Farley wrote: > I'm using the 'builder' gem. I create an XML builder, add a sequence of > tags with inner text, then escape the HTML, then save the object. > > Problem: The following gsub tag is appearing in my XML that I didn't put > there. > >=">">(?-mix:[&\