Displaying 20 results from an estimated 1000 matches similar to: "acts_as_taggable, undefined method 'empty?'"
2008 Dec 11
1
help needed regaring Acts As Taggable On Steroids
Hello,
In my rails application, I have a book model.
I want to add tags. For that I have installed
acts_as_taggable_on_steroids from this link
http://agilewebdevelopment.com/plugins/acts_as_taggable_on_steroids
and do as the readme file.
This is my Model :
class Book < ActiveRecord::Base
acts_as_taggable
end
Here is my ApplicationHelper :
module
2006 Apr 04
5
How to implement tag clouds using plugin?
The code on
http://blog.craz8.com/articles/2005/10/28/acts_as_taggable-is-a-cool-piece-of-code
is based on the acts_as_taggable gem,anybody has done that using the
acts_as_taggable plugin?thanks!
btw:the code above uses the tag_count method,which is defined in the
gem:
def tags_count(options = {})
options = {:order => ''count DESC''}.merge(options)
2009 Jul 07
10
link_to, how do you combine url options and html_options?
I have a link-to that I wish to look somewhat like this:
link_to "link here", new_object_path,
:method => :post, :confirm => ''Press OK'', #url
options
:class => "css_class", :id => "css_id" #html
options
In any case I can either get the url_for options to work or the html
options to work, but
2006 Dec 17
12
Best practices for conditional display in views?
Hi.
I am writing an application that has a lot of boolean conditional
display logic, like this:
<% if user.description then %>
<p class="css_class"><%= user.description %></p>
<% end %>
Often the displayed content is more complex than the above, and to clean
up my views I am trying to pull a lot of this sort of thing into
partials.
However, the problem
2011 Aug 21
1
dashboard 1.1.1 with filebucket doesn't show contents of the new file
Am using dashboard 1.1.1 with the use_file_bucket_diffs option.
When clicking on the links within a report it will show the old md5
file (on the left) but not the new md5 file (on the right)
like;
content content changed ''{md5}26a3112822d01f2ce6b3f052bf2809de'' to
''{md5}dd97364ab0559344d73231f517951595''
26a3112822d01f2ce6b3f052bf2809de ==> is displayed
2012 Mar 30
0
Facing probme with image upload rails 2.3.4, ruby 1.9.2 with papaerclip
I been working on image upload since long and every time working fine,
Now since i deployed application on server,i am facing strange problem
while image upload.
When i am trying upload image it''s gives error like,
NameError (undefined method path'' for
classActionController::UploadedStringIO''): :10:in synchronize'' passenger
(3.0.9)
2013 Mar 07
2
Puppet Dashboard changed reports view error
Hello Puppet Users !
We encounter a problem with the dashboard on this URI : /reports/changed
The /reports works fine with ~130000 reports (up to 3 months and
auto-cleaning with rake reports:prune job)
I make a reports:prune:orphaned, juste in case, but without any success.
The most recent change on the server was the puppetmaster upgrade from
3.0.2 to 3.1.0.
Here is the dashboard error log
2010 Jan 05
1
Errno::ENETUNREACH (Network is unreachable - connect(2)):
I am trying to run my first app on the Solaris server, in a production
environment. I get a network unreachable. Why? Does it belongs to
database.yml config?
Processing CategoriesController#index (for 10.3.70.129 at 2010-01-05
14:00:47) [GET]
Errno::ENETUNREACH (Network is unreachable - connect(2)):
/usr/ruby-enterprise/lib/ruby/1.8/net/http.rb:560:in `initialize''
2009 Apr 17
0
A frustrating and strange error when config.action_controller.perform_caching = true
Hello all.
I am having a hell of a problem and it''s driving me nuts. I get the
following error (undefined method `controller_name'' for nil:NilClass): but
only when config.action_controller.perform_caching = true
I googled around some and found this thread
http://groups.google.com/group/communityengine/browse_thread/thread/b84154e5228bf9f3which
suggests it may be a conflict with
2010 Jun 13
4
internal server error(500) when attempting to sendmail
Hello,
I have an application that, when you create an appointment it sends an
email to the client to say someone has just booked.
Locally, this works fine (i''m just using sendmail)
Locally - all email tests have come through - no problem.
However - when I copy all the files onto the server and attempt to
create a booking, it comes up with the 500 page. The error below if
taken from my
2014 Feb 27
0
Error custom_require.rb line 36
Hi,
I've moved a project on new server with ruby 1.9.1 but now I've an
error:
Error message:
cannot load such file -- test/unit/error
Exception class:
LoadError
Backtrace:
# File Line Location
0 /usr/lib/ruby/1.9.1/rubygems/custom_require.rb 36 in
`require'
1 /usr/lib/ruby/1.9.1/rubygems/custom_require.rb 36 in
`require'
2
2010 Feb 25
0
Ruby on Rails application could not be started
Hi,
Hi,
I''m upt o install retrospectiva on my centOS 5 machine. Therefore, i
installed ruby 1.9.1 (ruby 1.9.1p376 (2009-12-07 revision 26041)
[x86_64-linux]) and following gems:
*** LOCAL GEMS ***
actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
fastthread (1.0.7)
mysql (2.8.1)
passenger (2.2.10)
rack (1.0.1)
rails (2.3.5)
rake
2011 Mar 22
3
Premature end of script headers
after moving my app to production, I am getting the following error in the
apache error log. I am running on linode with apache and passenger.
any help would be great,
thanks,
Jason
[Tue Mar 22 00:18:04 2011] [error] [client 50.9.211.207] Premature end of
script headers:
[ pid=23638 thr=3063581552 file=ext/apache2/Hooks.cpp:821 time=2011-03-22
00:18:04.735 ]: The backend application (process
2009 Mar 26
1
Error Send Message
Hello,
I''m trying to make my rails app send mail. so it''s can''t send it''s
error.
I''m using the following configuration in environment.rb:
==
Rails::Initializer.run do |config|
...
config.action_mailer.delivery_method = :smtp
end
ActionMailer::Base.smtp_settings = {
:address => "mail.mydomain",
:port => 25,
:domain =>
2010 May 29
0
User Error during memcached integration
Hello, I hope all is well. I am hoping someone can help me with a
problem that I am certain is user error?
The configuration details below work in all my other environments
including integration, development and qa. However, the production
servers give the following error:
unable to find server during initialization.
When I telnet to the memcached box from the server having the problem
and run
2009 Dec 07
1
problem starting rails (hobo) app with passenger
Dear All!
I''ve set up my apache, passenger and configs, the passenger works, but
the app can''t be started. the erros are the following
These are the possible causes:
*
There may be a syntax error in the application''s code. Please
check for such errors and fix them.
*
A required library may not installed. Please install all
libraries that this
2011 Jun 01
7
desperate, errors with file upload
hello,
i implementing a file upload using paperclip plugin. i getting the
following error [1] when uploading a file. I''m using the gems rails
v2.3.8 and paperclip v2.1.6. the parameter hash looks like [2], the
model like [3].
Interesting is that i get two different errors, on the localhost with
webrick it says:
Status: 500 Internal Server Error
no marshal_dump is defined for class
2010 Dec 26
1
Sqlite gem not found with rails3
Hello,
I am migrating a rails app to rails3, however I am hanging with an
error about gem not found.
Error message:
Could not find sqlite3-ruby-1.3.2 in any of the sources
(Bundler::GemNotFound)
Exception class:
PhusionPassenger::UnknownError
When I do
$ gem list sqlite3-ruby-1.3.2
*** LOCAL GEMS ***
(and the same result with sudo gem list )
However, when I do
gem list
2012 Dec 11
1
"GET /production/certificate/puppet-client2.tcl-oob.net? HTTP/1.1" 500 11298 "-" "-"
Hi,
I have puppet 3.0.1 installed with passenger and the clients are unables to
request a certificate. I get a httpd error. 10.1.1.9 - -
[11/Dec/2012:16:09:44 +0000] "GET
/production/certificate/puppet-client2.tcl-oob.net? HTTP/1.1" 500 11298 "-"
"-"
When I run puppet master without passenger, I am able to request and sign
certificates.
I see this in http
2012 Apr 19
1
active admin undefined method `' for nil:NilClass
im working with active admin i have collection_select or dropdown box
that populates the packages and crews im just wondering i why this
undefined method `[]'' for nil:NilClass`
i dont know what happened but it run few days ago and tested it once but
now it raises this error are there possible way to solve this?
def create
@package = Package.find(params[:package_crew][:package_id])