[Rails] How can i call an image in my model

2012-08-21 Thread Maddy
Hi folks, Am generating table vales as pdf file.I need to call my images in that pdf generated file.. how could i call?? its is my actual image directory /assets/images/logo.png it is my model.rd, class PerformancePdf Prawn::Document def initialize(performance) super(top_margin: 70)

Re: [Rails] Re: Nested form and a link to add fields question?

2012-08-21 Thread vishal singh
check this https://github.com/vishalsingh/multiple_upload_photo may be helpful for you. Regards, Vishal Singh On Mon, Aug 20, 2012 at 12:23 PM, Colin Law clan...@googlemail.com wrote: On 19 August 2012 22:11, fuzzy hlog...@gmail.com wrote: Thanks Bertly ... that is funny ... but even

Re: [Rails] Fetch Facebook fanpage in rails

2012-08-21 Thread Tsvetelina Borisova
use koala gem 29 февруари 2012, сряда, 08:50:30 UTC+2, sathish kannan написа: Hi, I am newbie to rails , I need access facebook page information like wall, subscription,picture etc. I have apps in rails 3, it has list of artist users he upload songs, videos within my application,

[Rails] Add an Expires Header

2012-08-21 Thread Saravanan P
Hello everyone In rails how can add an expires header. In which file i need write expires year code? Please advice. -- 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.

Re: [Rails] Fetch Facebook fanpage in rails

2012-08-21 Thread Saravanan P
Hi There is railscast tutorial http://railscasts.com/episodes/360-facebook-authentication On Tue, Aug 21, 2012 at 3:07 PM, Tsvetelina Borisova ts.boriso...@gmail.com wrote: use koala gem 29 февруари 2012, сряда, 08:50:30 UTC+2, sathish kannan написа: Hi, I am newbie to rails , I

Re: [Rails] Add an Expires Header

2012-08-21 Thread G S RAO
If you are running on production environment then you can add expires headers on nginx configration file On 21 August 2012 18:08, Saravanan P saravana...@shriramits.com wrote: Hello everyone In rails how can add an expires header. In which file i need write expires year code? Please

Re: [Rails] Add an Expires Header

2012-08-21 Thread Saravanan P
hi sorry for my ignorance, in my server which file i need to enter expires code like ifmodule mod_expires.c filesmatch \.(jpg|gif|png|css|js|ico)$ ExpiresActive on ExpiresDefault access plus 1 year /filesmatch /ifmodule On Tue, Aug 21, 2012 at 6:42 PM, G S RAO

[Rails] Re: Nested form and a link to add fields question?

2012-08-21 Thread fuzzy
Thanks vishal, The explanaitions of the various entities in the Model-View-Control pattern is definitely interesting. Thanks again. On Aug 21, 2:24 am, vishal singh vishal.singh...@gmail.com wrote: check this  https://github.com/vishalsingh/multiple_upload_photo  may be helpful for you.

[Rails] Re: Rails s - startup issue (new Rails on ubuntu installation

2012-08-21 Thread Vincent C.
http://stackoverflow.com/questions/9783573/tests-are-running-on-my-ubuntu-pc-but-not-on-my-mac-os-x-lion-10-7-3-ruby-1-9 work for me, gem incompatible with ubuntu -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on

[Rails] Re: How can i call an image in my model

2012-08-21 Thread Robert Walker
Maddy wrote in post #1072965: Hi folks, Am generating table vales as pdf file.I need to call my images in that pdf generated file.. how could i call?? its is my actual image directory /assets/images/logo.png I think, if I understand you correctly, you're looking for this:

[Rails] Undefined method

2012-08-21 Thread Tim Slattery
I have a controller named RegistriesController. It contains a single method: def edit @jolts_registry = JoltsRegistry.new end This runs, and the associated view is invoked. That stops on line 9: %= form_for @jolts_registry do |f| % The message is: undefined method `jolts_registries_path'

Re: [Rails] Undefined method

2012-08-21 Thread Walter Lee Davis
On Aug 21, 2012, at 4:12 PM, Tim Slattery wrote: I have a controller named RegistriesController. It contains a single method: def edit @jolts_registry = JoltsRegistry.new end This runs, and the associated view is invoked. That stops on line 9: %= form_for @jolts_registry do |f| %

Re: [Rails] Undefined method

2012-08-21 Thread Colin Law
On 21 August 2012 21:12, Tim Slattery slatter...@bls.gov wrote: I have a controller named RegistriesController. It contains a single method: def edit @jolts_registry = JoltsRegistry.new end This runs, and the associated view is invoked. That stops on line 9: %= form_for

[Rails] Re: Error installing therubyracer

2012-08-21 Thread John RLive
Thanks zorz that worked for me. However anytime I type anything in terminal I get this line after: -bash: __git_ps1: command not found is there a way to get rid of this? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups