[Rails] Re: Email attachment corrupted

2008-11-23 Thread Hammer Ting
Found the solutions: 1) For the error where the email body was not received by the recipient, it was because of the naming of the view file has the wrong extension. I had to changed it to "email_friend.erb", instead of "email_friend.html.erb. 2) As for the corrupted image file, it was because

[Rails] Email attachment corrupted

2008-11-22 Thread Hammer Ting
Having some problem with sending email with attachment: I am able to send an email without attachment via gmail server. However, when i tried to send an image attachment, it is corrupted at the recipient mailbox; coz the mail received: (1) Has the attachment, but not able to open the image fil

[Rails] Re: Still undefined pagination

2008-11-07 Thread Hammer Ting
Just realized I did managed to install will_paginate already, using the gem install method. Didn't realize earlier as i kept looking at the /vendor directory. At least i can finally continue with the pagination coding. :) -- Posted via http://www.ruby-forum.com/. --~--~-~--~~---

[Rails] Re: Still undefined pagination

2008-11-06 Thread Hammer Ting
Plugin not found: ["git://github.com/mislav/will_paginate.git"] The other option of running "git merge braid/track" still have the same error. What else could be missing here ??? Hammer Ting wrote: > While trying to follow the installation instruction on the git

[Rails] Re: Still undefined pagination

2008-11-06 Thread Hammer Ting
dl wrote: > I think you need something like: > > require "will_paginate" > > in your environment.rb file. Be sure to put it after the > Rails::Initializer block so all the Rails goodies are loaded--will- > pagenate needs them. > > > > On Nov 5, 7:27�pm,

[Rails] Re: Still undefined pagination

2008-11-06 Thread Hammer Ting
Thanks, will be trying it out. However, at the meantime, not sure I have installed svn or not. So try to explicitly install it. I tried install the .msi of TortosieSVN, but it does not come with svn.exe. So I went and download manually their svn.exe. But when I run it, in dos prompt, it pop-u

[Rails] Still undefined pagination

2008-11-05 Thread Hammer Ting
I have tried to install both the classic_pagination and will_paginate using the commands below, but still get the "undefined method paginate". Source code and error dump shown below. What did i miss out. Thanks. === Commands to install plugins == ruby script/plugin install

[Rails] Re: Unable to install sqlite3

2008-11-03 Thread Hammer Ting
Thanks! It works! Mohit Sindhwani wrote: > This is a known problem. Hope the link below helps: > http://domhackers.blogspot.com/2008/09/sqlite3-ruby-gem-on-windows.html > > > Cheers, > Mohit. > 11/3/2008 | 2:04 PM. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~--

[Rails] Unable to install sqlite3

2008-11-02 Thread Hammer Ting
I am new to Ruby. Try out a web application, but when I tried to access the page, it has the following error (see ERROR 1 below). So I thought I may have not installed "sqlite3" and tried downloading "sqlite_3-6-4.zip" and "sqlitedll_3-6-4.zip", unzipped it and place it in ruby's bin directory. T