[Rails] encrypt the pdf

2012-12-05 Thread kiran cy
I am encrypting the pdf in rails using pdf-toolkit here is my code: PDF::Toolkit.pdftk(infile output outfile user_pw rails) It is giving error saying that undefined method user_pw Any suggestions -- Posted via http://www.ruby-forum.com/. -- You received this message because you are

Re: [Rails] encrypt the pdf

2012-12-05 Thread Colin Law
On 5 December 2012 10:40, kiran cy li...@ruby-forum.com wrote: I am encrypting the pdf in rails using pdf-toolkit here is my code: PDF::Toolkit.pdftk(infile output outfile user_pw rails) It is giving error saying that undefined method user_pw Have you provided that method or variable? If

[Rails] Ajax response in a modal box

2012-12-05 Thread nikhil rn
Hello guys, I was wondering if I could display the ajax response in a modal box. I could not find anything satisfying on the web. I am new to ajax. This is what I was trying. $(document).ready(function() { var clicked1; $(.inline).click(function(e) { clicked1 = $(this).text(); $.ajax({

[Rails] access json data from rails controller in ajax call and process it

2012-12-05 Thread ruby rails
I am building a Task Management System and have implemented fullcalendar.js in it. I need to get the pending tasks and change the color of those pending tasks. I am getting the instance variable of pending tasks details in the rails controller. But in the ajax request I am not able to loop it.

[Rails] Re: encrypt the pdf

2012-12-05 Thread kiran cy
I think that is predefined in pdftk -- 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

Re: [Rails] Re: encrypt the pdf

2012-12-05 Thread Colin Law
On 5 December 2012 11:04, kiran cy li...@ruby-forum.com wrote: Please quote the previous message and put your reply inline at appropriate points. Remember this is a mailing list not a forum (though you may be accessing it via a forum-like interface. Thanks. I think that is predefined in pdftk

[Rails] Re: Re: encrypt the pdf

2012-12-05 Thread kiran cy
Colin Law wrote in post #1087900: On 5 December 2012 11:04, kiran cy li...@ruby-forum.com wrote: Please quote the previous message and put your reply inline at appropriate points. Remember this is a mailing list not a forum (though you may be accessing it via a forum-like interface. Thanks.

Re: [Rails] Re: Re: encrypt the pdf

2012-12-05 Thread Colin Law
On 5 December 2012 11:14, kiran cy li...@ruby-forum.com wrote: Colin Law wrote in post #1087900: On 5 December 2012 11:04, kiran cy li...@ruby-forum.com wrote: Please quote the previous message and put your reply inline at appropriate points. Remember this is a mailing list not a forum

[Rails] Re: encrypt the pdf

2012-12-05 Thread Frederick Cheung
On Dec 5, 11:14 am, kiran cy li...@ruby-forum.com wrote: http://www.pdflabs.com/docs/pdftk-cli-examples/ That is the usage summary for the command line tools, not for the ruby api. For starters you'll need to separate your arguments with commas, not spaces Fred -- Posted

Re: [Rails] access json data from rails controller in ajax call and process it

2012-12-05 Thread Jim Ruther Nill
On Wed, Dec 5, 2012 at 7:02 PM, ruby rails li...@ruby-forum.com wrote: I am building a Task Management System and have implemented fullcalendar.js in it. I need to get the pending tasks and change the color of those pending tasks. I am getting the instance variable of pending tasks details in

[Rails] Creating associations via scaffolding?

2012-12-05 Thread Dan Brooking
Hey guys… beginner question here so hopefully it's an easy and quick answer. Is it possible to create associations via scaffolding? Say I have an Artists model and a Song model and I want song to have an artist_id. Can I create that via the scaffold command? Or would I scaffold like normal for

[Rails] Rails Admin Site missing Index file - Advice Needed Please

2012-12-05 Thread Brian
Hi There, I'm hoping you guys can help me out. I have recently developed an iphone location based app and unfortunately the developer went off the rails towards the end (yea pun intended lol) and when we were handed over all the files for the app and admin site there was a number of things

Re: [Rails] Rails Admin Site missing Index file - Advice Needed Please

2012-12-05 Thread Walter Lee Davis
On Dec 5, 2012, at 8:19 AM, Brian wrote: Hi There, I'm hoping you guys can help me out. I have recently developed an iphone location based app and unfortunately the developer went off the rails towards the end (yea pun intended lol) and when we were handed over all the files for the

[Rails] Re: Rails Admin Site missing Index file - Advice Needed Please

2012-12-05 Thread Frederick Cheung
On Wednesday, December 5, 2012 1:19:15 PM UTC, Brian wrote: Hi There, I'm hoping you guys can help me out. I have recently developed an iphone location based app and unfortunately the developer went off the rails towards the end (yea pun intended lol) and when we were handed over all the

[Rails] Creating associations via scaffolding?

2012-12-05 Thread Dan Brooking
Hey guys… beginner question here so hopefully it's an easy and quick answer. Is it possible to create associations via scaffolding? Say I have an Artists model and a Song model and I want song to have an artist_id. Can I create that via the scaffold command? Or would I scaffold like normal for

[Rails] Re: Rails Admin Site missing Index file - Advice Needed Please

2012-12-05 Thread Rick
Hello Brian, The quickest and most likely to be successful way out is to get connected with someone who has actually built and deployed a RoR app. The work is fairly straightforward once you know how but if you're looking at a time constraint you'ld be best served by someone who's already

[Rails] ActiveSupport Dependencies load eats MultiJson.load?

2012-12-05 Thread Jonathan Rochkind
I can't quite figure out what's going on here, it seems like if this were actually a problem someone else would have run into it and I'd have better luck googling for it, since MultiJson is so popular but Rails 3.2.9. Is ActiveSupport::Dependencies doing something weird with a #load

[Rails] Re: Unable to install pg gem file on CENT OS

2012-12-05 Thread James Byrne
PavanKumar Chamarthi wrote in post #1087845: please help me in this... I am unable to install pg gem file [root@vdimc04 ~]# gem install pg -v '0.12.0' /usr/local/lib/ruby/1.9.1/yaml.rb:56:in `top (required)': It seems your ruby installation is missing psych (for YAML output). To eliminate

[Rails] Re: ActiveSupport Dependencies load eats MultiJson.load?

2012-12-05 Thread Jonathan Rochkind
Nevermind! Indeed, nobody else reported the problem because there is no problem. Due to weirdnesses of my Gemfile.lock, I was using a really old version of multi_json without realizing it, one that lacked the #lock method. (Had an old version of Capybara in my gemfile.lock, which locked

[Rails] Action Mailer 3.2.9 retruns duplicates in deliveries array

2012-12-05 Thread James Byrne
I am extracting a standalone batch application from a Rails 3.0.1 project. This requires only ActiveRecord and ActionMailer. In my testing I set ActionMailer::Base.delivery_method = :test This causes the mail to be delivered to the ActionMailer::Base.deliveries array. However, I am getting

[Rails] passing parameter from one autocomplete-jquery to another

2012-12-05 Thread Soichi Ishida
Rails 3.1.3 My app has two consecutive rails3-autocomplete-jquery form_tags https://github.com/crowdint/rails3-jquery-autocomplete I want to pass a parameter, which depends on the first autocomplete_field_tag choice, to the second. The second form should search based on the parameter. %=

[Rails] Unable to list the names using Search logic

2012-12-05 Thread keerthi priya
Hey all, I am trying to list students in alphabetical order starting from a to z but using search logic I unable to do that. can any one help me out. These lines are in controller @search = Student.search(params[:search]) @students+=@search.all View

[Rails] Re: encrypt the pdf

2012-12-05 Thread kiran cy
It is working pdf is encrypted my_pdf = PDF::Toolkit.open(directory+@encrypt_pdf.attach.url.split('?')[0].to_s) my_pdf.user_password=@encrypt_pdf.user_password my_pdf.owner_password=@encrypt_pdf.owner_password how to allow permissions like printing screen reader -- Posted via

[Rails] Bye-bye, Observers

2012-12-05 Thread Svoop
Hiya No more observers in Rails 4, farewell, never been much of a fan anyway. However, one of my gems is enabling model attributes for use with a client-side WYSIWYM editor. The sanitized markup ends up in the database and has to be processed before shown in a view. The corresponding helper

[Rails] Bye Bye, Observers

2012-12-05 Thread Svoop
Observers will be no more as of Rails 4, farewell, never been much of a fan. However, I'm using it in one of my gems which enables model attributes for use with a WYSIWYM editor. The resulting markup is persisted, but in order to use it in a view, it has to be nokogiried in a helper which

Re: [Rails] Bye Bye, Observers

2012-12-05 Thread Jeffrey Jones
If you want to maintain separation you could add after_update and after_destroy callbacks that only send a message using ActiveSupport:notifications. You then write a subscriber to that notification which zaps the cache. Same result, but instead of observing, it listens. It also makes it