search for: rails_file_column

Displaying 19 results from an estimated 19 matches for "rails_file_column".

2005 Aug 17
7
(newbie) #{method}_relative_path empty (file upload 0.1.2)
...a file name written to a ''file'' column in the database table. I examined the source for the module, but couldn''t find where it breaks, if anything I''m doing is conflicting with the module for instance. here''s the model require_dependency ''rails_file_column'' class Photo < ActiveRecord::Base belongs_to :user file_column :file def set_to_last_position position = user.photos.size + 1 end def before_create set_to_last_position end end any ideas why FileColumn wouldn''t find the file&...
2006 Jan 09
5
file_column content type
is there a way using the file_column plugin to enforce a certain content type based on regex (i.ie, /^image/) and/or filesize (150k) ? thanks adam
2006 May 15
4
Anyone got a copy of File_Column trunk
Anyone able to post a copy of the svn trunk of file_column? The website''s been down for the past few days, and I''ve only got the last release (0.31, I think), which is missing a whole load of goodies. Tx
2006 Jan 16
6
file_column plugin error
...got the following error: NoMethodError in Entry#new undefined method `file_column'' for Entry:Class My environement is Red Hat linux 9.0 with mysql 4.1. I installed file_column under vendor/plugins. If I run "ls", I get the following directories: file_column rails_file_column I created a directory, " file_column" and copied files under "trunk" to file_column. Please see my controller, models and new.rhtml attached. Could anyone tell me why I got the error? It seems that rails can not find "file_column" plugin. Thanks in advance. -- -Th...
2006 Jan 16
3
file_column error
...got the following error: NoMethodError in Entry#new undefined method `file_column'' for Entry:Class My environement is Red Hat linux 9.0 with mysql 4.1. I installed file_column under vendor/plugins. If I run "ls", I get the following directories: file_column rails_file_column I created a directory, " file_column" and copied files under "trunk" to file_column. Please see my controller, models and new.rhtml attached. Could anyone tell me why I got the error? It seems that rails can not find "file_column" plugin. Thanks in advance. -- -Th...
2006 Aug 17
3
file_column plugin + rails 1.1.6
Hello, I need to install file_column plugin but I got an error message. This is the command I use: ./script/plugin install http://opensvn.csie.org/rails_file_column/plugins/file_column/trunk This is the error: Cannot find gem for Rails =1.1.4: Install the missing gem with ''gem install -v=1.1.4 rails'', or change environment.rb to define RAILS_GEM_VERSION with your desired version. What should I do? change environment.rb? is this a p...
2006 May 07
1
file_column problem - uninitialized constant Magick
...ivesupport-1.3.1/lib/active_support/dependencies.rb:123:in `const_missing'' #{RAILS_ROOT}/vendor/plugins/file_column/branches/kyle/lib/file_column.rb:621:in `file_column'' I installed file_column by running the following command: ruby script/plugin install http://opensvn.csie.org/rails_file_column/plugins/file_column It installed fine and I had RMagick installed before that and that ran fine too. I tried reinstalling file_column and RMagick but it doesn''t make a difference. I have a "require ''RMagick''" statement in my boot.rb file for my application to...
2006 May 30
3
plz help ~> new to file_column
i am trying to figure out how file column works so i can play with it a little bit on my site. i have installed it as a plugin to my rails application, copied the snippets on both model and view but when i try to run the page, i get an error saying "undefined method `file_column_field''" did i do something wrong or is something not installed? -- Posted via
2007 Aug 18
1
problem with file_column url generator
...k| %> 6: <p> 7: <%= link_to File.basename(hwk.file_name), url_for_file_column(hwk, "file_name") %> 8: </p> 9: <% end %> 10: </div class="list"> RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Trace vendor/plugins/rails_file_column/plugins/file_column/branches/kyle/lib/ file_column_helper.rb:58:in `instance_variable_get'' vendor/plugins/rails_file_column/plugins/file_column/branches/kyle/lib/ file_column_helper.rb:58:in `url_for_file_column'' #{RAILS_ROOT}/app/views/homework/list.rhtml:7:in `_run_rhtml_47app47...
2006 Feb 13
3
file_column: uninitialized constant Magick
I am getting this following error when using file_column with RMagick: uninitialized constant Magick /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/ active_support/dependencies.rb:200:in `const_missing'' ./script/../config/../vendor/plugins/rails_file_column/plugins/ file_column/branches/kyle/lib/file_column.rb:621:in `file_column'' #{RAILS_ROOT}/app/models/story_entry.rb:7 ./script/../config/../app/controllers/story_controller.rb:13:in `index'' This error occured while loading the following files: story_entry.rb magick.rb It...
2006 Aug 13
5
problems with file_column plugin
...r annoyance but it gives me the feeling that things aren''t quite like other plugins. 2) I get this error: undefined method `file_column'' for Mymodel:Class after following the directions to to that on the same page. I thought it was maybe because I had to add require ''rails_file_column'' to environment.rb but I still get the same error Does anyone have an example of a getting this plugin working? A complete example would be great (model, list and form views, and controller, and schema) http://wiki.rubyonrails.org/rails/pages/HowToUseFileColumn only has model and view...
2006 Jan 05
1
File_column image validation
Hello, Is it possible to enforce minimum image size and other validations using file_column? if so does anybody have some examples. I have looked at Kyle''s file_column extension and I saw that it enforces format''s (jpg,pdf etc) but nothing for size. Thanks! Sunder -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Jan 12
1
methods for file_column
how do i find the available methods available to my objects in file_column ? I noticed that i can do @post.image_relative_path for my @post object to retreive the relative path. What are all the other options available to my objects thru file_column ? thanks adam
2006 Jan 13
1
Accessing file_column_helper from withing controller
Hi All, i have i niggly little showstopper -> I need to access file_column_helper from within the controller, as I need to include an image in my "pdf-write" code... Any sane way to do this? "Require ''rails_file_column''" still gives me an error: "undefined method `url_for_file_column''..." (I am using *svn* version with Rails 1.0) Regards, Brendon G.
2006 Dec 07
0
rails_file_columng + acts_as_versioned
Anybody using both of these plugins simultaneously? It appears that the methods dynamically generated by rails_file_column don''t get added to the Version class: NoMethodError (undefined method `image='' for #<Opinion::Version:0x35c9254>): .//vendor/rails/activerecord/lib/active_record/base.rb:1847:in `method_missing'' .//vendor/plugins/acts_as_versioned/lib/acts_as_versioned.rb:...
2006 May 04
5
How to upload only jpeg & gif & png images into public/images using rubyonrails
Hello iam new to rubyonrails. Please any one help me out in "How to upload only jpeg & gif & png images into public/images using rubyonrails" Thanks in Advance -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060504/33a17ad2/attachment.html
2007 Apr 27
3
Image upload problem.
I''ve seen posts of a few people who have this problem, but not a single response about solving it. I can''t upload .png files, but .jpg and .gif work fine. When I upload just a .png, my action gets a StringIO object which breaks when I try to copy the upload to an absolute location. However, using multiple-field upload, as long as one of the to-upload files is *not* a .png, all
2006 Mar 04
13
file_column
Restricting size of an uploaded file, is how is that possible? If I do not want a user to upload a file larger than X bytes, can it easily be done? If I also would like restrict the types of files that can be uploaded, how may I do so? Thank you, Sharkie
2006 Dec 26
15
is there a way to not repeat installing plugins?
i seem to be using the same plugins for all my sites and was wondering if there is a way to make the process easier and faster? is this what is called by "packing your own gems"? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"