並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 16 件 / 16件

新着順 人気順

attachment_fuの検索結果1 - 16 件 / 16件

  • Goodbye attachment_fu, hello Paperclip – TheWebFellas - Ruby on Rails Development Specialists UK

    For well over a year now attachment_fu has been my plugin of choice for adding file uploads to our Rails applications, but recently my fellow WebFellas have been raving about Paperclip from the clever guys at thoughtbot. As I’ve just started yet another new project I figured it was time to take Paperclip for a spin. The obligatory special instructions for Windows If, like me, you’re a long-suffer

    • GitHub - technoweenie/attachment_fu: Treat an ActiveRecord model as a file attachment, storing its patch, size, content type, etc.

      attachment-fu ============= attachment_fu is a plugin by Rick Olson (aka technoweenie <http://techno-weenie.net>) and is the successor to acts_as_attachment. To get a basic run-through of its capabilities, check out Mike Clark's tutorial <http://clarkware.com/cgi/blosxom/2007/02/24#FileUploadFu>. attachment_fu functionality =========================== attachment_fu facilitates file uploads in Ruby

        GitHub - technoweenie/attachment_fu: Treat an ActiveRecord model as a file attachment, storing its patch, size, content type, etc.
      • Attachment_fuプラグイン - Ruby on Rails プラグイン まとめ wiki

        このプラグインができること acts_as_attachmentの機能改良版。 ファイル(特に画像)のアップロードや表示を効率化できる ファイルアップロード時に複数サイズのサムネイルを生成できる(要RMagick) ファイルの保存先はファイルシステムかDBかを選択できる。AmazonのS3サービスにも対応しているらしい。 画像表示時のヘルパーもついてる 対象バージョン

          Attachment_fuプラグイン - Ruby on Rails プラグイン まとめ wiki
        • attachment-fu/RMagick で画像アップロードサービス - hs9587’s diary

          (追記、その2も見よ) Rails(PostgreSQL)で、画像アップロードサービスを作ってみる。 添付ファイルの取り扱いには attachment-fuプラグインを使い、 更に画像のバリデーションやサムネイル作成には RMagckを用いる。 Railsアプリケーション作成 [207] rails -d postgresql photo 新しく出来た photoディレクトリにて svn登録 [249] svn import -m 'start rails/photo' . svn+ssh://localhost/home/hs9587/svnrepos/photo/trunk <略> [249] .. [250] mv photo .photo [251] svn co svn+ssh://localhost/home/hs9587/svnrepos/photo/trunk photo

            attachment-fu/RMagick で画像アップロードサービス - hs9587’s diary
          • AJAX file uploads in Rails using attachment_fu and responds_to_parent - Khamsouk Souvanlasy

            In this walkthrough, I go through the available options and an example using attachment_fu to handle file uploads and image thumbnailing, and responds_to_parent to implement the iframe remoting pattern to work around javascript’s security restrictions on file system access. You can also download the complete example. This is an outdated article. I will be updating with a new article soon. Step 1.

            • Flash Video Tutorial with Rails, ffmpeg, FlowPlayer, and attachment_fu

              Quick Tutorial today to get a simple Video Model setup and going with Flowplayer today. We want to be able to upload videos and convert them to flash .flv files. For this I'll be using ffmpeg. Other plugins in this tutorial include acts_as_state_machine and Rick Olsen's attachment_fu. Lets get started! Note: You can find the source code for this app on github at http://github.com/balgarath/video-a

              • attachment_fu プラグインの脆弱性っぽいものについて - Halflife

                報告して修正もしてもらえたのでメモ。 以前 穴があると言ったプラグインは attachment_fu です。READMEに書いてあるような mass assignment @attachable_file = AttachmentMetadataModel.new(params[:attachable]) を行っている場合、プラグインやサーバの設定にもよりますが最悪 Rails が動いているサーバ上のあらゆるファイルを攻撃者に読み取られてしまいます。 とりあえず、 @attachable_file = AttachmentMetadataModel.new @attachable_file.uploaded_data = params[:attachable][:uploaded_data] のように uploaded_data だけに(独自の属性を追加していればそれらもですが)明示的に入

                  attachment_fu プラグインの脆弱性っぽいものについて - Halflife
                • Railsで添付ファイルを扱う attachment-fu プラグイン (その1) - 税理士業界でSaaS開発をしながら綴る日記

                  社内のシステムを作っていて何かと要望として多いのが、添付ファイルを保存できないかということだ。スキャンしたデータなどをとりあえずサーバーにアップロードしておいて、好きな時にダウンロードできるようにしたいという。うちのような税理士業界では、少しはIT化(死語のような気もするが・・・)が進んだとは言え、デジタル化されていない紙の資料がまだまだ山のように存在するのだ。 Rails で添付ファイルを保存したり、ファイルの内容の検証や加工を行うためのプラグインとして代表的なものに、attachment-fu というものがあった。 手元にあった本「Railsレシピブック 183の技」にも載っていたので、これを参考にやってみた。 環境 Ubuntu 8.0.4 jruby 1.1.4 Rails 2.1.1 MySQL 5.0 今回は例題として、作家(Novelists)のリストがあって、それにその作家

                    Railsで添付ファイルを扱う attachment-fu プラグイン (その1) - 税理士業界でSaaS開発をしながら綴る日記
                  • Red Artisan - Ruby on Rails Specialists - Melbourne, Australia - Attachment_fu magic with Core Image and Ruby Cocoa!

                    Attachment_fu magic with Core Image and Ruby Cocoa! Like many of us in the Rails world, I use attachment_fu to handle file uploads in my Rails applications. Attachment_fu does a great job, in particular with it’s ability to scale and generate multiple sized copies of images with various processing back ends including ImageScience, RMagick and MiniMagic, not to mention it’s flexible storage options

                    • attachment_fuプラグインで画像アップロード - nyaago69のブログ

                      前提 RMMagicをインストールしておく。 インストール railsアプリケーションのトップでscript/pluginを実行してインストール >ruby script/plugin install http://svn.techno-weenie.net/projects/plugins/attachment_fu 今回の例 既存の商品モデル(product)の編集ページに対してその商品写真(photo)を加えるという例を作ってみる。 http://d.hatena.ne.jp/cuspos/20071110を参照させていただきました。 Model生成とmigrate アップロードデータを扱うモデルを作成。 今回は商品(product)の商品画像(photo)のモデルを作成。 nyaago@kyonkyon: 501 $./script/generate model photo exi

                        attachment_fuプラグインで画像アップロード - nyaago69のブログ
                      • attachment_fuプラグインの保存先を変更 - nyaago69のブログ

                        前回、attchment_fuでとりあえず画像アップロードをしてみたが、 今回、保存先と画像を参照するurlを変更する実装を行っていみる。 アプリケーションとは別のディレクトリで画像を管理したいということと、 railsではなくapacheで画像のリクエストを処理させるということが目的。 対象としたrailsは2.0.2。 基本としては、画像をあつかうmodelでattachment_fuのファイルストレージ(file_system_backend.rb)で定義されているメソッドのオーバーライドすることと、 初期化スクリプトを使ってパスとurlの設定を行えるようにすることにより対応。 モデルの定義 今回、Photoというモデルを画像を扱うモデルとして作成。以下のような実装を行う。 Configというネストしたクラスを定義。 Configというネストしたクラスを定義。さらにモデル側にそのイン

                          attachment_fuプラグインの保存先を変更 - nyaago69のブログ
                        • Rails 3 paperclip vs carrierwave vs dragonfly vs attachment_fu

                          Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams Collectives™ on Stack Overflow Find centralized, trusted content and collaborate around the technologies you use most. Learn more about Collectives

                            Rails 3 paperclip vs carrierwave vs dragonfly vs attachment_fu
                          • attachment-fu/RMagick で画像アップロードサービス(その2) - hs9587’s diary

                            アップロード系のデータ fixture_file_upload models/photo_spec.rb it "should be valid" do # fixtures :photos # photos(:one).should be___ uped = fixture_file_upload './ccc.jpg', 'image/pjpeg' photo = Photo.new :uploaded_data => uped photo.should be_valid end fixture_file_upload を使うとアップロードされたファイルと同じ想定にできる。 というわけでスペック内で使えるように beforeで準備するようにしておく。 models/photo_spec.rb before(:each) do @photo = Photo.new @uped = fix

                              attachment-fu/RMagick で画像アップロードサービス(その2) - hs9587’s diary
                            • attachment_fu で validate 出来なくて困った。 - モーリスブログ - s21g

                              rails にファイルアップロードを支援する attachment_fu というプラグインがあるが、こいつで README に書いてあるとおり、 1  class KoreAttachment < ActiveRecord::Base 2  belongs_to :are 3  validates_as_attachment 4  5  has_attachment :storage => :db_file, 6  :max_size => 1.megabyte, 7  :min_size => 1.byte, 8  :thumbnails => {:thumb => '80x80>', :tiny => '40x40>'} 9  end

                              • Plugins - Attachment Fu - Agile Web Development

                                Name URL Email Comment Spam protection: Insert the next number in this sequence: 10, 11, 12, 13, 14, ?? Pablo Melo 15 Jun 2008 using the callback: after_resize do |record, img| record.size = img.filesize end used to work fine with rails 1.2.6 but I upgraded to 2.1 and get the error message: The error occurred while evaluating nil.filesize Then I applied the patch from: http://blog.methodmissing

                                • RailsLodge - Attachment Fu plugin

                                  attachment_fu facilitates file uploads in Ruby on Rails. There are a few storage options for the actual file data, but the plugin always at a minimum stores metadata for each file in the database. attachment_fu is a plugin by Rick Olson (aka technoweenie) and is the successor to acts_as_attachment. Websitehttp://github.com/technoweenie/attachment_fu/tree/master Repositorygit://github.com/tech

                                  1