[Rails] Re: Re: Re: Re: Rails 3 generate pdf

2012-03-20 Thread Daisy Di
Bruno Coelho wrote in post #1052445: > Where did you put the file? > > Bruno Coelho Santiago I put it in the folder ruby192/bin -- 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 g

[Rails] Postgres COPY from STDIN

2012-03-20 Thread Tim Uckun
I have done some googling to try and figure out how I can use COPY FROM STDIN with rails and have ran into some posts on stackoverflow or the mailing list but none of them seem to be working with rails 3.2 Does anybody have a working example of using COPY FROM STDIN? Some things I have tried http

[Rails] Modifying a gem, best way to deploy

2012-03-20 Thread C
For a project I used the gem 'event_calendar'. However, there were a couple things I had to manually change within the gem source to suit my needs. How would I go about to deploy this in production 'the rails way'? Right now I have just replaced the sourcecode of the gem installed on my production

[Rails] [JOB] Rails Interns wanted in Dana Point, CA and New Haven, CT

2012-03-20 Thread fkchang2...@gmail.com
Hedgeye Risk Management's engineering department is looking for a for an intern to help develop web applications, fix bugs, pair program, contribute ideas, work with internal customers, and research new methods and technologies. The ideal candidate will be an aspiring web software engineer looking

[Rails] [JOB] Rails Interns wanted in Dana Point, CA and New Haven, CT

2012-03-20 Thread fkchang2...@gmail.com
Hedgeye Risk Management's engineering department is looking for a for an intern to help develop web applications, fix bugs, pair program, contribute ideas, work with internal customers, and research new methods and technologies. The ideal candidate will be an aspiring web software engineer looking

Re: [Rails] @model OR :model in a form_for

2012-03-20 Thread Javier Quarite
Is it all made with scaffolds? or what do you have in your controller? Javier Q. -- 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

[Rails] @model OR :model in a form_for

2012-03-20 Thread Cluter Vipic
Hi Folks, I want a form in a rails 3.0.10 app with form_for exactly I have 3 models @apple, @basket, @table class Apple belongs_to :tables belongs_to: baskets end class Basket belongs_to :tables has_many :apples end class Table has_many :baskets has_many :apples end M

SV: [Rails] Re: Completely, absolutely and totally new...

2012-03-20 Thread Brynjolfur Thorvardsson
Well, the point (as IanJ also made) is that you have to do one thing at a time. Learn the language (Ruby), learn the quirks and conventions of Rails, learn to test and debug the hard way. Then add integrated testing. It's a steep learning curve, just learning how to program. If you don't develop

[Rails] Re: Completely, absolutely and totally new...

2012-03-20 Thread Max
I totally agree with Collin. do the testing. Been working with rails and ruby for about 6 months now (give or take a month) and started with Hartl's tutorial. I also started by usign rails 3.1.x before he had developed the chapter/material for it so there was a lot of debugging, IRC chatting, go

[Rails] Re: sti + namespace

2012-03-20 Thread Francis P.
I know this is an old topic, and perhaps you've solved it. But for anyone who comes across this thread, here's a post that might be helpful: http://stackoverflow.com/questions/4382280/is-a-fails-with-single-table-inheritance-in-rails-3 -- Posted via http://www.ruby-forum.com/. -- You receive

[Rails] Re: Completely, absolutely and totally new...

2012-03-20 Thread IanJ
Personally I agree with Brynjolfur. I have 20+ years experience in coding of one sort or another - but not much on object oriented stuff like rails. I've been working through the Rails Tutorial and while it makes plenty of sense - and the examples work if followed perfectly - any deviation and it f

Re: [Rails] Completely, absolutely and totally new...

2012-03-20 Thread Kisha M Richardson
Would have to agree with Colin, I'm a newbie (I've only been working with Ruby on Rails for about 7 weeks now) using Rspec. I learned the basics of testing using Hartl's tutorial, which does a solid job of helping you understand how it should be framed and connected to an overall project. It's help

Re: [Rails] guilty by association

2012-03-20 Thread Kisha M Richardson
Hey Bingo Bob. - Read Mike Hartl's -- Chapter 10 & 11 in the 3.2 version here http://ruby.railstutorial.org/chapters/user-microposts?version=3.2#top - Also checkout the Ruby on Rails -- Active Record association guide section here http://guides.rubyonrails.org/association_basics.html

[Rails] guilty by association

2012-03-20 Thread bingo bob
No apologies for the punny title! Anyway, here's the thing. I know what I want to do but not sure of the right way to model it. So far I have this in place. User has_many :names User.username User.email Name belongs_to :user Name.given Name.gender Name.user_id So basically a User has a lis

[Rails] Re: Rails 3 generate pdf

2012-03-20 Thread Tyler Moore
I work at Expected Behavior, and we have a SaaS application called DocRaptor that can create PDF files from HTML. There's no need to install anything with our service, and it's easy to include in your own Rails applications. Here's a link to DocRaptor's home page: http://docraptor.com/ And a li

[Rails] Re: rails server error (rails 3) in windows

2012-03-20 Thread Luis Lavena
On Tuesday, March 20, 2012 1:54:25 AM UTC-3, Ruby-Forum.com User wrote: > > Hey all, > > I'm trying to learn RoR with absolutely no programming experience > following the ruby on rails essentials tutorial on lynda.com. I'm still > very early in the video series and I created a new project using the

[Rails] Re: Multiple Paperclip Images on Index

2012-03-20 Thread Graham Dawe
Thank you very much for your help Walter! That has solved it and I have hopefully learnt something very useful :) -- 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 ema

Re: [Rails] Re: Multiple Paperclip Images on Index

2012-03-20 Thread Walter Lee Davis
On Mar 20, 2012, at 11:44 AM, Graham Dawe wrote: >> <% for post in @posts %> >> >> <%= image_tag(post.assets.first.url(:thumb)) %> >> >> ...whatever else you show in the index about each post >> >> <% end %> >> >> The key thing here is that post.assets is a collection of all related >> assets

[Rails] Re: Multiple Paperclip Images on Index

2012-03-20 Thread Graham Dawe
> <% for post in @posts %> > > <%= image_tag(post.assets.first.url(:thumb)) %> > > ...whatever else you show in the index about each post > > <% end %> > > The key thing here is that post.assets is a collection of all related > assets. > > Walter Thanks for your reply Walter. I have tried what

Re: [Rails] Multiple Paperclip Images on Index

2012-03-20 Thread Walter Lee Davis
On Mar 20, 2012, at 9:45 AM, Graham Dawe wrote: > Hi, > > I am working on a project that is using Paperclip to upload multiple > images to an Asset model. my Post model has_many Assets. As per this > tutorial/screencast... > > https://github.com/Emerson/Multiple-File-Uploads-with-Paperclip-and-

Re: [Rails] Re: rails server error (rails 3) in windows

2012-03-20 Thread Javier Quarite
Yes, have you installed it using rails installer? or something else? -- 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 r

[Rails] Re: rails server error (rails 3) in windows

2012-03-20 Thread jack cognac
Javier Quarite wrote in post #1052402: > Have you add mysql gem? > (maybe you have added it but just in case ) > > > Javier I'm pretty sure I did, "gem install mysql", correct? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Group

[Rails] Multiple Paperclip Images on Index

2012-03-20 Thread Graham Dawe
Hi, I am working on a project that is using Paperclip to upload multiple images to an Asset model. my Post model has_many Assets. As per this tutorial/screencast... https://github.com/Emerson/Multiple-File-Uploads-with-Paperclip-and-Rails-3/blob/master/app/views/posts/show.html.erb";> http://www

Re: [Rails] Re: Re: Re: Rails 3 generate pdf

2012-03-20 Thread Bruno Coelho
Where did you put the file? Bruno Coelho Santiago On Tue, Mar 20, 2012 at 6:19 AM, Daisy Di wrote: > ranjan kumar wrote in post #1052406: > > you can find wkhtmltopdf here http://code.google.com/p/wkhtmltopdf/ > > i download wkhtmltopdf-0.9.9-installer.exe and install it, but still > doesnt

Re: [Rails] Completely, absolutely and totally new...

2012-03-20 Thread Colin Law
On 20 March 2012 09:41, Brynjolfur Thorvardsson wrote: > Well, that had to come! Of course. >Of course testing is vital, but when learning the basics of programming it >simply gets in the way. First be comfortable with the language and system, >then add testing. > > This obviously refers to th

Re: [Rails] rails tag issue with html

2012-03-20 Thread amvis
Here i do like this ** *$(document).ready(function () {* * $("#da").bind('submit',function() {* ** *$(".checked4").hide();* *$(".checked3").show();* * }); * *});* ** * * * <%= submit_tag "Get", :id => "da", :class => "btn btn-large btn-primary"

SV: [Rails] Completely, absolutely and totally new...

2012-03-20 Thread Brynjolfur Thorvardsson
Well, that had to come! Of course testing is vital, but when learning the basics of programming it simply gets in the way. First be comfortable with the language and system, then add testing. This obviously refers to the integrated testing as used in much Rails development, and for good reason.

Re: [Rails] Database connection to remote machine

2012-03-20 Thread Colin Law
On 20 March 2012 07:44, Dharmdip Rathod wrote: > HiAll, > > Here is strange problem. > > Application is on cloud server. Database server is on another instance > and application hosted on different instance. > > databse server ip : 170.2.14.131 > application server ip : 170.2.14.137 > > developmen

Re: [Rails] Completely, absolutely and totally new...

2012-03-20 Thread Colin Law
On 20 March 2012 06:08, Brynjolfur Thorvardsson wrote: > Hi, you could also try following this book: > > http://ruby.railstutorial.org/chapters/rails-3-1 > > Given your minimal knowledge of programming, it's probably best if you skip > all the testing parts (which take up more than half) and conc

[Rails] Re: Re: Re: Rails 3 generate pdf

2012-03-20 Thread Daisy Di
ranjan kumar wrote in post #1052406: > you can find wkhtmltopdf here http://code.google.com/p/wkhtmltopdf/ i download wkhtmltopdf-0.9.9-installer.exe and install it, but still doesnt work. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed t

[Rails] Google calendar is not working properly with gcal4ruby (0.2.6)

2012-03-20 Thread Manish Nautiyal
I'm using Rails - 2.2.2 gcal4ruby (0.2.6) I'm using google calendar to display events for users in my website. Till 18-march-2012 everything was working fine. But now whenever user add events to the calendar it show only busy in the calendar. My code is def add_event user_id = curre

Re: [Rails] rails tag issue with html

2012-03-20 Thread Tom Meinlschmidt
at least, use $().show() or $().hide() instead of setting CSS values or $().toggle(visible?) where visible is true/false tom On Mar 20, 2012, at 9:25 , amvis wrote: > Thanks tom, Here the submission happens, but the other will'not show.. I > just give like this > > > $(document).ready(funct

[Rails] Does omniauth act as provider

2012-03-20 Thread Chris
Hi There, I got this Problem: OAuthProvider <-> Rails WebApp <-> iOS App With omniauth the part between "OAuthProvider" and "Rails WebApp" seems to be really easy. But how about authentication for the iOS App. Is there a way to "pass through" authentication so that I could authenticate the iOS

Re: [Rails] rails tag issue with html

2012-03-20 Thread amvis
Thanks tom, Here the submission happens, but the other will'not show.. I just give like this ** *$(document).ready(function () {* * $("#da").bind('submit',function() {* *//$(".original").fadeOut(300, function() {* * * *$(".checked4").css("display", "none");* *

Re: [Rails] rails tag issue with html

2012-03-20 Thread Tom Meinlschmidt
change event from click() to onSubmit $('#da').bind('submit', function() ... tom On Mar 20, 2012, at 5:45 , amvis wrote: > > <%= form_tag( { :controller => 'businesses', :action => 'create' }, { :id => >'myform',:class => 'form-inline offset3', :method => 'post'}) do %> > <%= text_f

[Rails] Database connection to remote machine

2012-03-20 Thread Dharmdip Rathod
HiAll, Here is strange problem. Application is on cloud server. Database server is on another instance and application hosted on different instance. databse server ip : 170.2.14.131 application server ip : 170.2.14.137 development: adapter: mysql database: database_name username:

[Rails] Re: Installation steps for Ruby on Rails?

2012-03-20 Thread Gaurav K.
Thanks Murali. Console Error was ellaborated but never struck me to change the path and run the command. Regards, Gaurav Kanyalkar -- 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 th