Re: [Rails] Migration in Vendor folder

2012-09-11 Thread Colin Law
On 11 September 2012 05:27, sameena Khan emailtosameenak...@gmail.com wrote: if this can be done even i wanna know how to do it. On Mon, Sep 10, 2012 at 7:31 PM, keerthi priya emailtokeerthipr...@gmail.com wrote: Hi all There are few migrations in Vendor folder and i want to run

Re: [Rails] Which Static Web Generator should i use?

2012-09-11 Thread ANIKET KADAM
Please help Me On Tue, Sep 11, 2012 at 10:09 AM, ACK aniketkadam1...@gmail.com wrote: i know average ruby language. i sort out two static web generator* **Nanoc * and *Middleman* my requirements are:- 1. easy to customize 2. easy to learn 3. more resources to learn so tell me

Re: [Rails] Which Static Web Generator should i use?

2012-09-11 Thread Colin Law
On 11 September 2012 05:39, ACK aniketkadam1...@gmail.com wrote: i know average ruby language. i sort out two static web generator Nanoc and Middleman my requirements are:- easy to customize easy to learn more resources to learn so tell me which one will be better for me Nanoc or

[Rails] setup git in my godaddy server

2012-09-11 Thread Saravanan P
Hello everyone, I know this is not correct place to ask this question but please help if you know As mentioned some tutorial, i install git version 1.7.3.4 in home directory (/var/chroot/home/content/xx/xxx/git). then I initialize git repository by git init --bare in my samplerepo.git

Re: [Rails] Which Static Web Generator should i use?

2012-09-11 Thread ANIKET KADAM
i know but i asked on very possible forum and website but no ANSWER so that's why i asked here. On Tue, Sep 11, 2012 at 12:53 PM, Colin Law clan...@googlemail.com wrote: On 11 September 2012 05:39, ACK aniketkadam1...@gmail.com wrote: i know average ruby language. i sort out two static web

[Rails] How to convert the HTML entities into UTF-8 character set, in ruby 1.8.7

2012-09-11 Thread Nila
Hi, Is there away to convert the HTML entities into UTF-8 character set, in ruby 1.8.7? (For example, if we consider ö, convert the entity number #246; into \303\266. Or at least converting the html entity to the character ö ) Thank you -- You received this message because you are

[Rails] [JOBS] DevOp / SysOp for Web Application (Location: Preferably in Berlin, remote work possible)

2012-09-11 Thread Wimdu GmbH
Wimdu is an exciting, new start-up company headquartered in Berlin and one of the biggest Ruby projects in Europe. As a well-funded start-up with a long-term mission, Wimdu has grown to host over 50,000 properties in over 100 countries since March 2011. Our main concept is to “travel like a

Re: [Rails] setup git in my godaddy server

2012-09-11 Thread Saravanan P
Hello there, I solved the problem by editing the following code as escaping some of the quotes with backslashes: command=”if [[ \x${SSH_ORIGINAL_COMMAND}x\ == \xx\ ]]; then /bin/bash; else source ~/.bashrc; eval \”${SSH_ORIGINAL_COMMAND}\”; fi; ” On Tue, Sep 11, 2012 at 12:55 PM, Saravanan P

[Rails] 15min of mentorship asked

2012-09-11 Thread Pj M.
Dear RoR'ers, I would like to call in a bit of help from the more experienced members. The situation and question is very simple (as it always is ;)). For the next 20 days I have nothing on my hands except learning RoR, how can I boost my skills in this short amount of time? * which books should

Re: [Rails] 15min of mentorship asked

2012-09-11 Thread Colin Law
On 11 September 2012 11:04, Pj M. li...@ruby-forum.com wrote: Dear RoR'ers, I would like to call in a bit of help from the more experienced members. The situation and question is very simple (as it always is ;)). For the next 20 days I have nothing on my hands except learning RoR, how can I

Re: [Rails] Migration in Vendor folder

2012-09-11 Thread keerthi priya
There is app where i found few of the migrations and models are there in vendor and those files are found in a MVC folders. On Tue, Sep 11, 2012 at 12:41 PM, Colin Law clan...@googlemail.com wrote: On 11 September 2012 05:27, sameena Khan emailtosameenak...@gmail.com wrote: if this can be

Re: [Rails] Object Efficiency

2012-09-11 Thread Matt Jones
On Monday, 10 September 2012 12:59:22 UTC-4, rails2012 wrote: Just want to know the best practices to make sure I get off on the right foot. I think on a general rule, creating fewer instances of an object is ideal for performance right? (I am not suffering any real problems yet)

[Rails] wickedpdf

2012-09-11 Thread keerthi priya
Hi all i'm trying to generate pdf and i got this error Location of wkhtmltopdf unknown and i also get Bad wkhtmltopdf's path gpa/vendor/plugins/wicked_pdf/lib/wicked_pdf.rb:26:in `initialize' /EDWARD/_gpa/vendor/plugins/wicked_pdf/lib/pdf_helper.rb:53:in `new'

[Rails] Re: How to convert the HTML entities into UTF-8 character set, in ruby 1.8.7

2012-09-11 Thread Matt Jones
On Tuesday, 11 September 2012 04:02:22 UTC-4, Nila wrote: Hi, Is there away to convert the HTML entities into UTF-8 character set, in ruby 1.8.7? (For example, if we consider ö, convert the entity number #246; into \303\266. Or at least converting the html entity to the character ö )

Re: [Rails] wickedpdf

2012-09-11 Thread Jim Ruther Nill
do you have wkhtmltopdf installed? On Tue, Sep 11, 2012 at 9:52 PM, keerthi priya emailtokeerthipr...@gmail.com wrote: Hi all i'm trying to generate pdf and i got this error Location of wkhtmltopdf unknown and i also get Bad wkhtmltopdf's path

[Rails] Re: [JOBS] DevOp / SysOp for Web Application (Location: Preferably in Berlin, remote work possible)

2012-09-11 Thread Nicolas Sebrecht
The 11/09/12, Wimdu GmbH wrote: Wimdu is an exciting, new start-up company headquartered in Berlin and one of the biggest Ruby projects in Europe. As a well-funded start-up with a long-term mission, Wimdu has grown to host over 50,000 properties in over 100 countries since March 2011. Our main

Re: [Rails] wickedpdf

2012-09-11 Thread keerthi priya
yeah i have installed as a plugin . the code is in vendor folder On Tue, Sep 11, 2012 at 5:24 PM, Jim Ruther Nill jvn...@gmail.com wrote: do you have wkhtmltopdf installed? On Tue, Sep 11, 2012 at 9:52 PM, keerthi priya emailtokeerthipr...@gmail.com wrote: Hi all i'm trying to generate

[Rails] link_to_remote not working

2012-09-11 Thread deal bitte
This was a link_to_remote in rails 2. Now i changed it to link_to with remote=true But it still does not work I have added this in my gemfile and done bundle install gem 'prototype_legacy_helper', '0.0.0', :git = 'git://github.com/rails/prototype_legacy_helper.git' %= link_to( replace ,:update =

Re: [Rails] wickedpdf

2012-09-11 Thread Simon Macneall
Have you set the exe path in the initializer? You need to tell wickedpdf where the wkhtmltopdf binary is On Tue, 11 Sep 2012 19:59:51 +0800, keerthi priya emailtokeerthipr...@gmail.com wrote: yeah i have installed as a plugin . the code is in vendor folder On Tue, Sep 11, 2012 at 5:24

Re: [Rails] Migration in Vendor folder

2012-09-11 Thread Colin Law
On 11 September 2012 12:36, keerthi priya emailtokeerthipr...@gmail.com wrote: There is app where i found few of the migrations and models are there in vendor and those files are found in a MVC folders. Please don't top post, it makes it difficult to follow the thread. Insert your reply inline

Re: [Rails] link_to_remote not working

2012-09-11 Thread Colin Law
On 11 September 2012 13:04, deal bitte li...@ruby-forum.com wrote: This was a link_to_remote in rails 2. Now i changed it to link_to with remote=true But it still does not work I have added this in my gemfile and done bundle install gem 'prototype_legacy_helper', '0.0.0', :git =

Re: [Rails] wickedpdf

2012-09-11 Thread Jim Ruther Nill
i think you only installed the gem. Look at https://github.com/mileszs/wicked_pdf/wiki/Getting-Started-Installing-wkhtmltopdf on how to install the binary On Tue, Sep 11, 2012 at 9:59 PM, keerthi priya emailtokeerthipr...@gmail.com wrote: yeah i have installed as a plugin . the code is in

[Rails] JQuery.js problem

2012-09-11 Thread Avi
Hello, In my view, I am showing password strength. I had added jquery.js in assets/javascripts. It worked. Then in the UI :- :confirm stopped working in button_to. I was wondering why. But today I came to know that in rails 3.0 above jquery.js is not required. So I deleted it. But something

[Rails] Should i buy Ruby on Rails 3 Essential Training with Kevin Skoglund from Lynda.com

2012-09-11 Thread ACK
hello people, i m new to rails and i m thinking of buying Ruby on Rails 3 Essential Training with Kevin Skoglund tutorial http://www.lynda.com/Ruby-on-Rails-3-tutorials/essential-training/55960-2.html but problem is the tutorial is created on 2010 oct = so its 2 yrs old so my question it is

Re: [Rails] Should i buy Ruby on Rails 3 Essential Training with Kevin Skoglund from Lynda.com

2012-09-11 Thread Peter Hickman
To be honest given the wealth of resources available for free I can't see why you would need to pay anything to learn RoR. If the free stuff doesn't click get a book or two. If, after that, you still don't get it then I suspect that paying for a bunch of videos is probably throwing money away.

[Rails] Re: Case of lost milliseconds

2012-09-11 Thread Frederick Cheung
On Monday, September 10, 2012 12:32:32 AM UTC+1, Ruby-Forum.com User wrote: Can anyone explain where are the milliseconds getting lost - Completed 200 OK in 438ms (Views: 145.0ms | ActiveRecord: 15.0ms) Completed 200 OK in 378ms (Views: 206.0ms | ActiveRecord: 2.0ms) Completed 200 OK

[Rails] how to purge anonymous guest users from DB

2012-09-11 Thread Erwin
I am creating anonymous guest users which are persistent during the time they are connected to the site or until they sign up and become a member user ... this add a lot of anonymous user records in the DB and I wonder how to purge them ? should I run a cron script regularly or is there another

[Rails] Free Web Application Secure Coding Training by Jim Manico and Eoin Keary

2012-09-11 Thread c1ph3r_qu33n
*FREE Pass ($375 value) to pre-Conference OWASP AppSec USA 2012 Training* *Offer for Developers New to Application Security and the OWASP Community* ** *What:* FREE half-day training * * *Course Title: *Web Application Secure Defensive Coding Boot Camp* * *Instructors: * § Jim Manico,

[Rails] Coding test and analyzer

2012-09-11 Thread Tommy Lam
*Wanna assess or show off your coding skills? We are soon launching Dupcode.com, at which you can test and analyze your coding skills, compete with friends and at the same time pave the way to professional coder Come drop your email at dupcode.com http://www.dupcode.com/ and we will inform you

[Rails] [JOB] Senior Ruby Developer - NYC | 150-180k

2012-09-11 Thread OSS
I'm assisting one of my associates fill his New York City client's Senior Ruby Developer position. This is a full time, on-site, salaried Senior Ruby Developer position paying $150,000 to $180,000 + benefits. Local candidates preferred. Relocaters considered. Citizenship required. The general

[Rails] Re: 15min of mentorship asked

2012-09-11 Thread Pj M.
Hi there, I'm operating on a windows machine. However the kind of advice I'm looking for is not so technical in nature that I need advice how to get RoR running on my machine. With the help of AWDWR I already built the depot app on my machine. Now I'm looking for tips to get the most out of

Re: [Rails] wickedpdf

2012-09-11 Thread vijaya sekhar reddy mallidi
Hi keerthi, I think this issue relates to proper installation configuration of wicked_pdf. Cheers, Vijay On Tue, Sep 11, 2012 at 5:22 PM, keerthi priya emailtokeerthipr...@gmail.com wrote: Hi all i'm trying to generate pdf and i got this error Location of wkhtmltopdf unknown and i

Re: [Rails] Migration in Vendor folder

2012-09-11 Thread vijaya sekhar reddy mallidi
Hi keerthi, You are trying to integrate other plugins into your application? On Tue, Sep 11, 2012 at 5:06 PM, keerthi priya emailtokeerthipr...@gmail.com wrote: There is app where i found few of the migrations and models are there in vendor and those files are found in a MVC folders.

[Rails] Re: Should i buy Ruby on Rails 3 Essential Training with Kevin Skoglund from Lynda.com

2012-09-11 Thread Wasif Hyder
I'd personally recommend that you go through the Ruby on Rails tutorialhttp://ruby.railstutorial.org/. Its more recent, employs best practices from the get go, very well taught, and free book version. The screencasts you'd need to purchase. As an additional resource. You would also like this

Re: [Rails] Should i buy Ruby on Rails 3 Essential Training with Kevin Skoglund from Lynda.com

2012-09-11 Thread ANIKET KADAM
Html / css and Ruby language and little bit of PHP On Tue, Sep 11, 2012 at 6:27 PM, Peter Hickman peterhickman...@googlemail.com wrote: To be honest given the wealth of resources available for free I can't see why you would need to pay anything to learn RoR. If the free stuff doesn't click

Re: [Rails] Re: Should i buy Ruby on Rails 3 Essential Training with Kevin Skoglund from Lynda.com

2012-09-11 Thread ANIKET KADAM
Schneems - UT on Rails http://schneems.com/ut-rails. = is this resources free On Tue, Sep 11, 2012 at 6:17 PM, Wasif Hyder wasif_hy...@hotmail.comwrote: I'd personally recommend that you go through the Ruby on Rails tutorialhttp://ruby.railstutorial.org/. Its more recent, employs best

[Rails] Re: how to purge anonymous guest users from DB

2012-09-11 Thread Frederick Cheung
On Monday, September 10, 2012 1:43:35 PM UTC+1, Erwin wrote: I am creating anonymous guest users which are persistent during the time they are connected to the site or until they sign up and become a member user ... this add a lot of anonymous user records in the DB and I wonder how to

Re: [Rails] Re: 15min of mentorship asked

2012-09-11 Thread Michael Pavling
On 11 Sep 2012 13:59, Pj M. li...@ruby-forum.com wrote: Hi there, I'm operating on a windows machine. However the kind of advice I'm looking for is not so technical in nature that I need advice how to get RoR running on my machine. With the help of AWDWR I already built the depot app on my

Re: [Rails] How to convert the HTML entities into UTF-8 character set, in ruby 1.8.7

2012-09-11 Thread Walter Lee Davis
On Sep 11, 2012, at 4:02 AM, Nila wrote: Hi, Is there away to convert the HTML entities into UTF-8 character set, in ruby 1.8.7? (For example, if we consider ö, convert the entity number #246; into \303\266. Or at least converting the html entity to the character ö ) Here's what I do:

Re: [Rails] wickedpdf

2012-09-11 Thread keerthi priya
this is my wicked_pdf.rb in config/initilizers WickedPdf.config = { :wkhtmltopdf = '/opt/wkhtmltopdf', :layout = pdf.html, :margin = {:top= 40, :bottom = 20, :left= 30, :right = 30}, :header = {:html = { :template=

Re: [Rails] wickedpdf

2012-09-11 Thread thiagocifani
You need to be sure that your exe_path is that on file, if its not you just need to point out to the right place, the past year I need to do something like that, and I realized that my path was wrong. Hope its help. #:exe_path = '/usr/bin/wkhtmltopdf the fact here is here is wkhtmltopdf, I

Re: [Rails] wickedpdf

2012-09-11 Thread thiagocifani
sorry about my english mistakes, where you read week, should be read wiki! regards 2012/9/11 thiagocifani cifani.thi...@gmail.com You need to be sure that your exe_path is that on file, if its not you just need to point out to the right place, the past year I need to do something like that,

Re: [Rails] wickedpdf

2012-09-11 Thread Thota praneeth
Why don't you use prawn gem for pdf files -- 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] Extracting OS Name

2012-09-11 Thread Avi
Hello, From my rails application, I have given a download button, which will download a file from the server. At the time of downloading, I want to save the values of *IP Address* *Client Type*( from which OS - Mac/Windows/Linux system it was downloaded ) to the database. Any ideas how can I

Re: [Rails] wickedpdf

2012-09-11 Thread keerthi priya
i fixed it . thanks for your responses i followed this link https://github.com/mileszs/wicked_pdf/wiki/Getting-Started-Installing-wkhtmltopdfand at 5th step in that link i changed the path and it got fixed. On Tue, Sep 11, 2012 at 7:39 PM, Thota praneeth praneetheee...@gmail.comwrote: Why

Re: [Rails] Extracting OS Name

2012-09-11 Thread Colin Law
On 11 September 2012 15:18, Avi aavinash.beh...@gmail.com wrote: Hello, From my rails application, I have given a download button, which will download a file from the server. At the time of downloading, I want to save the values of IP Address Client Type( from which OS - Mac/Windows/Linux

Re: [Rails] Extracting OS Name

2012-09-11 Thread Avi
Thanks a lot. It seems useful. I am going to try this. On Tuesday, September 11, 2012 8:09:59 PM UTC+5:30, Colin Law wrote: On 11 September 2012 15:18, Avi aavinas...@gmail.com javascript: wrote: Hello, From my rails application, I have given a download button, which will download

Re: [Rails] Extracting OS Name

2012-09-11 Thread thiagocifani
http://mohitsharma.net/how-get-browser-operating-system-and-client-ip-rails 2012/9/11 Avi aavinash.beh...@gmail.com Thanks a lot. It seems useful. I am going to try this. On Tuesday, September 11, 2012 8:09:59 PM UTC+5:30, Colin Law wrote: On 11 September 2012 15:18, Avi

[Rails] git error

2012-09-11 Thread Saravanan P
Hi, while i try to push i getting following error. fatal: Unable to find remote helper for 'https' Past days worked well but not not. I think morning i did something in git so only happened like. Morning download git -v 1.7.3.4 in my home directory and extract that. Please advice -- You

Re: [Rails] git error

2012-09-11 Thread Tom Meinlschmidt
https://status.github.com/ On Sep 11, 2012, at 17:38 , Saravanan P saravana...@shriramits.com wrote: Hi, while i try to push i getting following error. fatal: Unable to find remote helper for 'https' Past days worked well but not not. I think morning i did something in git so only

[Rails] define_method vs module_eval

2012-09-11 Thread John Merlino
Rails code: Accessors.send :define_method, :default_#{name}, block Accessors.module_eval -METHOD, __FILE__, __LINE__ + 1    def #{name}    @details.fetch(:#{name}, [])    end    def #{name}=(value)    value = value.present? ? Array(value) : default_#{name}    _set_detail(:#{name}, value)

Re: [Rails] Extracting OS Name

2012-09-11 Thread Avi
Hello, Thanks for the reply. I got correct solution for system os. But I am getting the ip as 127.0.0.1 which is default. I tried a few solutions. but nothing seems to be working. All are giving me same results. How can I change the ipaddress to the current system;s ipaddress ? On Tuesday,

Re: [Rails] Extracting OS Name

2012-09-11 Thread Colin Law
On 11 September 2012 20:30, Avi aavinash.beh...@gmail.com wrote: Hello, Thanks for the reply. I got correct solution for system os. But I am getting the ip as 127.0.0.1 which is default. I tried a few solutions. but nothing seems to be working. All are giving me same results. How can I

[Rails] Re: define_method vs module_eval

2012-09-11 Thread 7stud --
John Merlino wrote in post #1075500: Rails code: Accessors.send :define_method, :default_#{name}, block Accessors.module_eval -METHOD, __FILE__, __LINE__ + 1 def #{name} @details.fetch(:#{name}, []) end def #{name}=(value) value = value.present? ? Array(value) :

[Rails] #StartOnRails - 13/09/2012

2012-09-11 Thread Fernando Kosh
Caros, Convido-os para o #StartOnRails desta quinta-feira. 19h na Rua Alvaro Alvim, 37/1619 Muitos eventos. [ ]'s, Fernando Kosh -- 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: mattr_accessor inside a class

2012-09-11 Thread 7stud --
John Merlino wrote in post #1075232: Rails extends Ruby with mattr_accessor (Module accessor). As Ruby's attr_accessor generates getter/setter methods for instances, mattr_accessor provide getter/setter methods at the module level. In below example, you see that mattr_accessor declared in the

Re: [Rails] Extracting OS Name

2012-09-11 Thread Avi
Thanks a lot. I tried with another system it is working. On Wednesday, September 12, 2012 2:00:09 AM UTC+5:30, Colin Law wrote: On 11 September 2012 20:30, Avi aavinas...@gmail.com javascript: wrote: Hello, Thanks for the reply. I got correct solution for system os. But I am

[Rails] Re: How to convert the HTML entities into UTF-8 character set, in ruby 1.8.7

2012-09-11 Thread Nila
Thanks alot for the responses. Could do it using HTMLEntities. On Tuesday, September 11, 2012 1:32:22 PM UTC+5:30, Nila wrote: Hi, Is there away to convert the HTML entities into UTF-8 character set, in ruby 1.8.7? (For example, if we consider ö, convert the entity number #246; into

Re: [Rails] git error

2012-09-11 Thread Saravanan P
this mean... I think i collapse git in my system. That same project work in another machine. On Tue, Sep 11, 2012 at 9:18 PM, Tom Meinlschmidt to...@meinlschmidt.comwrote: https://status.github.com/ On Sep 11, 2012, at 17:38 , Saravanan P saravana...@shriramits.com wrote: Hi, while i