similar to: undefined method `has_attachment'

Displaying 20 results from an estimated 100000 matches similar to: "undefined method `has_attachment'"

2009 Mar 06
1
attachment_fu has_attachment model logic reasoning?
Both Attachment_fu and Paperclip use something like ''has_attachment'' to work their magic on an existing model like a User in the context of a profile picture or something like that. I find this idea pretty constricting, as it doesn''t allow for multiple profile pictures for example. Or at least I wouldnt know how to set this up with either of the 2 plugins. I am
2008 Oct 08
0
undefined method add called for ActsAsFerret::Remote::Server
undefined method `add'' called for #<ActsAsFerret::Remote::Server:0x7f5be279ea38> I am currently using ferret (0.11.6) and act_as_ferret (0.4.3) My project is using rails 2.1.1 and ruby 1.8.6 along with sqlite3 and Webrick. I can start the ferret server and when I do ''ps aux | grep ferret'' in terminal I see the ferret server to be running. I have a model and
2006 Nov 20
1
undefined method `stringify_keys!' for "4":String - Meaning of this?
Hi, I have the following on a view <% for evaluation in @evaluations %> <td><%=h evaluation[0].name %></td> <td><%=evaluation[1].object_id %></td> <td><%= link_to( "Start", :action =>''evaluatie'', :id => evaluation[1].object_id) %></td> <%end%> When I click on the link, I can see that
2007 Apr 21
3
attachment_fu thumbnails
howdy! I had the problem that attachment_fu didn''t make a thumbnail, but everything else worked. I read this post http://www.ruby-forum.com/topic/104213 and added a parent_id column. now I get the following error when I trie to add a photo: undefined method `find_or_initialize_by_thumbnail_and_parent_id'' for Photo:Class my code is: class Photo < ActiveRecord::Base
2007 Jul 22
2
undefined method `stringify_keys'
Hello I have a view for user registration but when i try to view this page i get this error: undefined method `stringify_keys'' for "username":String Here''s my registration.rhtml: <% form_tag :controller => :user, :action => :register do %> <fieldset> <label for="username">Username>/label><br/><%= text_field_tag
2008 Feb 29
0
undefined method `calendar_date_select_tag'
Hi, I am trying to use the ''Calendar Date Select'' plugin (http://calendardateselect.googlecode.com/svn/tags/calendar_date_select/). I''ve copied all the necessary files (javascript + css + calendar_date_select.rb and so forth files). Further, I added <%= calendar_date_select_includes "blue" %> line of code in my layouts/application.rhtml and finally
2008 Apr 12
1
acts_as_tree undefined method?
i have acts_as_tree installed as plugin under rails 2.0.2 and also its defined in class TreeItems, but when i put this in my view <ul class="tree_level1" id="cars">Furniture <% TreeItem.root.category.children do |cat_children| %> <li><a class="list_item" href="#"><%=h cat_children.name %></a></ li> <%
2008 May 28
1
Attachment_fu, polymorphism and customization
Hi, I got Image model that has_attachment and belongs_to 2 other models via polymorphic association. The problem is that I''d like to customize has_attachment options (resize image) depending on which model the Image is related to - i.e. if Image belongs to Article it should be resized using different settings than if it belongs to Header. Is there a smart way to do it or do I have to
2007 Apr 18
3
nil.symbolize_keys -- error with attachment_fu
I''ve spent at least 2 hours on this one problem. On my local machine in my controller I have this: def new @page_title = "New User" @user = User.new @photo = Photo.new end All is good. Now, on the remote server I get an error when accessing the ''new'' view. If I remove @photo = Photo.new from the controller then the error goes away. This same error
2007 Jun 05
1
undefined method <name> for Service:Module
Hi all, We have a controller by name "ServiceController" (service_controller.rb) and everything was fine until we upgraded our rails. We recently upgraded Rails from Rails 1.1.6 to Rails 1.2.3. and after that when we try to invoke the "ServiceController" we are getting an error like this "undefined method find for Service:Module" I guess some namespace collision is
2009 Feb 21
1
undefined method user_id
Basically, Im trying to add comments to photos that other users have uploaded. And Ive encountered an error: NoMethodError in CommentsController#create undefined method `user_id='' for #<Comment:0x4768cd0> C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1857:in `method_missing''
2007 Dec 31
3
undefined method `content_type'
I am using form_remote_tag to upload a file, but it says .. undefined method `content_type'' for #<String:0x477a930> what could be wrong when it works fine with form_for? -- 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
2007 Dec 17
2
undefined method `param_posted?'
I upgraded an app to 2.01 and can''t figure out why I am getting a undefined method `param_posted?'' for #<ControlPanelController: 0xb748ba18> The controller should be inheriting this. class ControlPanelController < ApplicationController --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2008 Apr 01
2
undefined method 'find' error
I just moved my app from development to test, and now getting the following error on my form: undefined method ''find'' for Status:Class The only difference between the two environments is that test is using Mongrel and we were running WEBrick in dev. We are on Rails 1.2.5 . Any suggestions? Thanks, Brian -- Posted via http://www.ruby-forum.com/.
2008 Dec 08
2
undefined method 'render_file' for class 'ActionView::Base'
I need some help with SimpleLog I have SimpleLog running at HostingRails. I want to develope and test new themes stuff on my local system. I getting the error from actionview_ex.rb:12 undefined method ''render_file'' for class ''ActionView::Base'' I am at: Ruby: 1.8.6 Rails 2.2.2 gem: 1.3.1 rake: 0.8.3 I am a new rails/merb/ruby developer. I think I am on the
2008 Jun 10
7
ActionMailer undefined method `parameters' - Rails 2.1
Hello Rubyists, I''m currently trying to get email hooked up via ActionMailer, and while I''ve gotten it to work in the past on Rails 1.2.x, I''m seeing an error that I''m unfamiliar with. Right now, I''m just trying to send email from my dev box via the SMTP server at work. My development.rb file: #...snip config.action_mailer.delivery_method = :smtp
2008 Apr 16
2
undefined method exception if no data is present
I get this error if no relational data is present: undefined method `notes'' for #<Array:0x226cc4c> Here is the code that causes the error: @notes = @account.notes If I call this method through the script/console I get account = Account.find(3) => #<Account id: 3, ...> >> account.notes => [] I get the same error if I don''t declare the @notes var and
2008 Jun 19
2
undefined method `text_field_with_auto_complete'
Hello everybody, I am new to ruby on rails, I am trying to create an auto_complete field on Ruby on Rails 2.0 and even though I have installed the auto_complete plugin and followed the instructions of various tutorials, specially the following: http://trix.pl/blog/auto-complete-for-rails-2-0-tutorial.html I am still getting the same error: undefined method
2007 May 04
3
ERROR While executi gem (NoMethodError)undefined method =
I''ve just installed ruby and rubygems on a solaris machine, but when i do this : gem install rails --include-dependencies -p http://10.17.0.1:3128 it crashes out with : ERROR: While executing gem ... (NoMethodError) undefined method `[]='' for #<Gem::ConfigFile:0x84691d4> Does anybody have any idea why its hapenning? Im totally at a loss. Any help would be greatly
2007 Nov 23
3
call model method out of the controller => undefined method
Hi, I''m a newby and I fight with the Rails convention - i think so. I''ve done little tools and scripts in Ruby before. I''ve successfully uploaded a textfile. And now i want to extract some filecontent to pass it into a database. My Problem: I can not start a given method of a given Model (=> Metadata.extract_content(fileuri)). The error message ''undefined