[Rails] Re: BcmsFckeditor fails with browsercms 3.5.3

2012-10-02 Thread Priyanka Pathak
Hello Guys, Found the solution!!! By placing ckeditor & fckeditor assets under assets directory of app. But still image from Amazon s3 fails to load. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Tal

[Rails] BcmsFckeditor fails with browsercms 3.5.3

2012-09-28 Thread Priyanka Pathak
Hello Guys, I was trying to upgrade the existing browser_cms project to latest version. Had use the bcms_fckeditor as well. But when trying to load page where fckeditor available than it shows some js and xml loading error. Here i have pasted the error. JS error. "NetworkError: 404 Not Found - ht

[Rails] Re: undefined method 'cms_connector_path' during browsercms 3.5.3

2012-09-28 Thread Priyanka Pathak
Hello Guys, Found the solution to overcome this problem by replacing 'cms_connector_path' to 'cms.connector_path' -- 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, sen

[Rails] undefined method 'cms_connector_path' during browsercms 3.5.3

2012-09-26 Thread Priyanka Pathak
Hello Guys, I tried to upgrade the browsercms project to latest version (browsercms 3.5.3). But it shows the error like undefined method 'cms_connector_path'. Any one have idea to get rid of it? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscri

[Rails] Re: how to use wicked_pdf

2012-03-28 Thread Priyanka Pathak
Hi, Hope below reference is help you out. http://priyankapathak.wordpress.com/2010/08/20/convert-html-to-pdf-using-webkit/. -- 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 gro

[Rails] Unable to invoke rake task from cron

2012-03-28 Thread Priyanka Pathak
Hello, Unable to invoke the custom rake task through cron under bundler. Same task invoke without bundler. Anyone please suggest solution? Here is the cron: */1 * * * * cd /home/rails_app && /usr/bin/bundle exec rake say_hi >> /home/crontab_errors.txt -- Posted via http://www.ruby-forum.com/

[Rails] Re: sub query issue with active record.

2011-12-29 Thread Priyanka Pathak
Hi, Modify your query to loyalties = Transaction.count(:loyalty_id , :joins=> :loyalties, :conditions => ["loyalties.created_at > ? ",cdate], :group=> ["transactions.loyalty_id"], :having=> ["count(*) > 1 "] loyalties contain OrderedHash. Now do loyalties.count to get actual count of fil

[Rails] Re: when the join model is created.

2011-12-29 Thread Priyanka Pathak
Hi, When you will create the object of model1 at that time you have to just assign the related records of models2. For eg. model1 = Model1.new(...) model1.model2_ids = [selected object id of model2] model1.save It automatically handles the association between currently created object of mode

[Rails] Re: unable to send html format through mail

2011-11-16 Thread priyanka pathak
Hello, Set content_type "text/html" in mailer method. Hope this will help you. -- 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@googlegrou

[Rails] Re: Looking for environment setup help

2011-11-15 Thread priyanka pathak
Hello, ruby-debug19 is compatible with rails 3.x and ruby 1.9.2. I have uninstall the ruby-debug and related dependency and than install ruby-debug19 gem by following below command: gem install ruby-debug19 -- --with-ruby-include=$rvm_path/src/ruby-1.9.2-preview3 gem install ruby-debug-ide1

[Rails] How to set cell style using SimpleXlsx::Serializer

2011-09-02 Thread Priyanka Pathak
Hello, I have used the SimpleXlsx::Serializer to create .xlsx file in ruby. There are 2 questions: 1. How to set format and style of cell through SimpleXlsx? 2. When i set the hyperlink in cell it shows normal text as =HYPERLINK("http://google.com","click here") instead of Hyperlink. but wh

[Rails] Re: Problem to start rails 3 based application

2010-12-14 Thread Priyanka Pathak
Hi, I have solved the issue. and also blog the steps which may help you to upgrade existing rails application to rails 3.x. http://priyankapathak.wordpress.com/2010/12/13/upgrade-existing-ruby-on-rails-application-with-rails-3-0-0-and-ruby-1-9-2p0/ -- Posted via http://www.ruby-forum.com/.

[Rails] Sequence of the delayed job execution

2010-12-14 Thread Priyanka Pathak
Hi, I am using delayed job in my rails application. want to know in which order delayed job execute? And only using priority we set the ordering? Let me know if any better solution. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Go

[Rails] Re: Problem to start rails 3 based application

2010-11-24 Thread Priyanka Pathak
Here is the output of @loaded_stacks.inspect {"railties"=>[], "rake"=>[#], "thor"=>[#]} gem.name gives activesupport My original application is on rails version 2.3.x but i need to run with rails 3.0.3 and ruby 1.9.2p0. which thing i am missing? -- Posted via http://www.ruby-forum.com/. -- Y

[Rails] Re: Problem to start rails 3 based application

2010-11-24 Thread Priyanka Pathak
I am using rails version 3.0.3 and ruby 1.9.2.p0 -- 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-t...@googlegroups.com. To unsubscribe from this

[Rails] Re: Problem to start rails 3 based application

2010-11-24 Thread Priyanka Pathak
This is the output of gem env. RubyGems Environment: - RUBYGEMS VERSION: 1.3.7 - RUBY VERSION: 1.9.2 (2010-08-18 patchlevel 0) [x86_64-linux] - INSTALLATION DIRECTORY: /home/.rvm/gems/ruby-1.9.2-p0 - RUBY EXECUTABLE: /home/.rvm/rubies/ruby-1.9.2-p0/bin/ruby - EXECUTABLE DIRECTORY: /home/.

[Rails] Problem to start rails 3 based application

2010-11-24 Thread Priyanka Pathak
Hello, I need urgent help. When i run rails application with rails 3.0.3 and ruby version 1.9.2p0. i get the below error. can anyone guide me what's i missed? rails s /home/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.3/lib/rails/script_rails_loader.rb:11: warning: Insecure world writable dir /usr

[Rails] fails ruby-ldap on ubuntu 10.04

2010-10-14 Thread Priyanka Pathak
Hi, I tried to install ruby-ldap 0.9.9 on ubuntu 10.04 with ruby 1.8.7. but i get the error. can anyone help me out? Building native extensions. This could take a while... ERROR: Error installing ruby-ldap: ERROR: Failed to build gem native extension. /usr/bin/ruby1.8 extconf.rb --with-ope

[Rails] Re: img_submit_tag

2010-10-05 Thread Priyanka Pathak
Hi, Take normal form and define your controller & action there as url. Instade of normal submit_tag use image_submit_tag. eg. <% form_for :url => {:action => 'add_to_cart', :id => x} do |f| %> <%= image_submit_tag("agree.png") %> <% end %> -- Posted via http://www.ruby-forum.com/. -- You

[Rails] Re: link_to with :method as :post

2010-09-08 Thread Priyanka Pathak
Priyanka Pathak wrote: > Hello, > I am using link_to helper to post the request. i want to hide the > extra parameters. so i have tried :method => :post also :post => true. > but it's not works for me. still it shows query string. can any one > suggest proper solu

[Rails] link_to with :method as :post

2010-09-07 Thread Priyanka Pathak
Hello, I am using link_to helper to post the request. i want to hide the extra parameters. so i have tried :method => :post also :post => true. but it's not works for me. still it shows query string. can any one suggest proper solution? -- Posted via http://www.ruby-forum.com/. -- You rece

[Rails] Re: country state city drop down list rails

2010-08-19 Thread Priyanka Pathak
Hi, There are some plugins available for country selection. - http://github.com/rails/country_select For US cities you may use http://github.com/mettadore/geoinfo -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "

[Rails] Re: rails ROUTING map.root

2010-05-03 Thread Priyanka Pathak
Hi, During processing of request first it executes routes. so, it's not possible to add above type of conditional statement (authentication). For conditional routing refer - http://www.buildingwebapps.com/articles/7082-enhancing-conditional-routing-in-rails -- Posted via http://www.ruby-for

[Rails] Re: Having trouble with Validatable

2010-05-03 Thread Priyanka Pathak
Hi, You just add include Validatable in your model after installing validatable gem. level option will work with active record validation. For more information refer this url - http://validatable.rubyforge.org/ -- Posted via http://www.ruby-forum.com/. -- You received this message becau

[Rails] Re: validates_format_of with condition

2010-04-17 Thread Priyanka Pathak
Hi, Use allow_blank => true -- 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-t...@googlegroups.com. To unsubscribe from this group, send email t

[Rails] Re: Custom Routes

2010-04-11 Thread Priyanka Pathak
Hi, As you want country name instead of id than pass name field. and in show method you have to search according to country name instead of id. As you required admin as prefix. so create namespace and define routes as map.namespace :admin do |admin| admin.resources :countries

[Rails] Re: How to copy a selected value into a text_field

2010-04-11 Thread Priyanka Pathak
RichardOnRails wrote: > In app\views\expenses\new.html.erb, I (mistakenly) replaced the > script/generated: > <%= f.label :vendor %> > <%= f.text_field :vendor %> > with: > <%= f.label :vendor %> > <% @current_vendors = Vendor.find(:all, :order=>"nickname") %> > <%= select_tag "list", options_for

[Rails] Re: display USERNAME next to post

2010-04-11 Thread Priyanka Pathak
Hi, As you want to display owner of post next to the post. Use post.user.name to display owner of the post. I think there is one to many relation exist between user & post model. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Goog

[Rails] Re: Don't Automatically start SESSION?

2010-04-09 Thread Priyanka Pathak
Hi, In registration method it's default set the registering user to session when you implement authentication plugin. if you disable that functionality in register/signup method of authentication than it solve your problem. -- Posted via http://www.ruby-forum.com/. -- You received this me

[Rails] Re: deciml

2010-04-05 Thread Priyanka Pathak
Hi, When you set field to decimal than default it accept 10 digits. so when you add the value over the limit it set to maximum decimal value. Add two validation in this case: a. validates_length_of - for length of decimal b. validates_numericality_of - for digits only -- Pos

[Rails] Re: Security issue in app

2010-04-05 Thread Priyanka Pathak
Hi, Use rails HTML escaping method - html_escape(s) or h(s) to fix that issue. Thanks, Priyanka Pathak -- 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, sen

[Rails] Re: rdoc

2010-02-23 Thread Priyanka Pathak
Hi, 1. How can I generate RDoc for my rails application - if you want to generate rdoc for entire rails application than execute rake doc:app (it generate app HTML files). 2. My application is only at a beginning stage . So should I create RDoc now it self? - No. there is

[Rails] Re: Show parents subpages if on a subpage

2010-02-19 Thread Priyanka Pathak
Lasse wrote: > Should acts_as_tree help me out? Hi, As you need hierarchical structure. and straight forward parent -> child relationship so, you will use acts_as_tree. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "

[Rails] Re: First time rails install, help with gems

2010-02-19 Thread Priyanka Pathak
Hi, As you want to install ruby on rails on linux system. so refer this url http://wiki.rubyonrails.org/getting-started/installation/linux -- 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 p

[Rails] Re: noob question : font problems

2010-02-18 Thread Priyanka Pathak
Hi, refer this url. may be it's help you out. http://www.gentoo-wiki.info/HOWTO_Xorg_and_Fonts -- 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 rubyonrai

[Rails] Re: Using validates_uniqueness_of with :update

2010-02-18 Thread Priyanka Pathak
Hi, As you need to fire uniqueness validation during creation of new record. validates_uniqueness_of :type_id, :scope => [:user_name],:on => :create, :message => "This has already been registered" -- Posted via http://www.ruby-forum.com/. -- You received this message because you are s

[Rails] Re: 500 Internal Error

2010-02-06 Thread Priyanka Pathak
Hello, As per your post, i think you are trying to run application on the already used port. so try to use some alternate port and try to run application. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rai

[Rails] Re: Force app to use www only

2009-11-08 Thread Priyanka Pathak
} !^www RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [L,R=301] Thanks, Priyanka Pathak -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk&quo

[Rails] Re: How to do printing in ROR?

2009-11-02 Thread Priyanka Pathak
Conrad Taylor wrote: > On Sun, Nov 1, 2009 at 11:46 PM, Priyanka Pathak < > rails-mailing-l...@andreas-s.net> wrote: > >> >> > Hi, this isn't a Rails related question but here's one way to do it in > Javascript: > > http://www.web-source.net/we

[Rails] Re: How to disable a item of select box

2009-11-02 Thread Priyanka Pathak
ant to disable particular item from select box. so here is the solution, <%= select(:record, :property_id, Property.all.collect {|p| [ p.name, p.id ] }, :disabled => 2 [it's the id which you want to disable] ) %> Hope this will help you. Thanks,

[Rails] Re: How to do printing in ROR?

2009-11-01 Thread Priyanka Pathak
As per your post, if you want to print page of application through rails than just give javascript:window.print(); on any label onclick. It will pop up the printer window & based on your printer selection. you get print of page content. Hope this will help you. Thanks, Priyanka Pa

[Rails] Re: domain names within app

2009-10-05 Thread Priyanka Pathak
http://github.com/dasil003/rails-multisite Thanks, Priyanka Pathak -- 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

[Rails] Re: `const_missing':NameError: uninitialized constant {const_id}

2009-10-02 Thread Priyanka Pathak
7;s solved your problem. -thanks Priyanka Pathak Rails Developer -- 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,

[Rails] Re: validates_uniqueness_of only if present

2008-11-19 Thread Priyanka Pathak
dino d. wrote: > Hi - I want to allow duplicate fields values if the field is blank, > but disallow duplicates if it's not. Is there a > validates_uniqueness_of_if_present equivalent? > > Thanks, > Dino Hi, As you required to place duplicate value if field is blank than you just use vali