[Rails] How to convert BinaryString to save in ImageFile at public path

2011-01-14 Thread Andre Cubeta
Hello I need your help and expertise, I have a method_name called avatar which will pull data to the web and shows the photo object from the Binary String. def avatar @ja = Model.where(id = params[:id]).limit(1).first if @ja.avatar @ja.avatar.photo_binary send_data

[Rails] Re: Flashed sign up and sign out messages - Devise

2010-08-09 Thread Andre Cubeta
Abder-Rahman Ali wrote: In following this tutorial: http://railscasts.com/episodes/209-introducing-devise When I sign up or sign out I don't get a flash message as shown in the tutorial, what could be the problem here? Thanks. Hi Abder-Rahman Keep an eye on your migration file ... if

[Rails] Devise :current_password validations and checking (how???)

2010-08-09 Thread Andre Cubeta
Hi Guys, In my devise applications in Rails 3, I created a separate form under my SettingsController class of which it handles the 'Change Password' of the User Model, so i can manipulate the current_user in the SettingsController. Now, I followed the set-up in the Devise/Views on how to update

[Rails] Re: Scaffolding

2010-07-03 Thread Andre Cubeta
Hemant Bhargava wrote: Sur Max wrote: IMHO, you really need to study the routes and how restful routing works. http://guides.rubyonrails.org/routing.html Scaffolding must have had generated the restful routing for the said controller and thus no other method except CRUD is being entertained

[Rails] Re: Error installing gems for Rails 3.0.0.beta4 on MacOSx

2010-06-26 Thread Andre Cubeta
frankjmat...@gmail.com wrote: it looks like you either installed rvm as root or are running it as such... I'm not sure exactly. either way. you shouldnt have to involve usr/bin in anything. all your commands should be directly from your home user directory. done that way, rvm will then

[Rails] Re: Error installing gems for Rails 3.0.0.beta4 on MacOSx

2010-06-25 Thread Andre Cubeta
frankjmat...@gmail.com wrote: Also I should have noted, after you get rails installed and run rails new MyNewAppName you should cd to that directory and run bundle install that will install all of your gem dependencies from your Gemfile and you shouldn't get that sqlite3-ruby error anymore.