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
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
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
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
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
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/
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
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
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
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
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
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/.
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
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
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
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/.
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
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
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
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
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
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 "
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
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
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
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
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
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
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
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
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
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
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 "
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
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
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
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
} !^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
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
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,
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
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
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,
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
44 matches
Mail list logo