[Rails] active_admin and devise sign in.

2011-05-18 Thread Ivan K.
I'm using this new gem active_admin with devise. I followed this wiki https://github.com/plataformatec/devise/wiki/How-To:-Allow-users-to-sign_in-using-their-username-or-email-address for regular users to let them sign in using username/email. And it's working for regular User, but now i can't

[Rails] Re: active_admin and devise sign in.

2011-05-18 Thread Ivan K.
omg. solved, i googled one more time http://stackoverflow.com/questions/4633077/how-to-use-different-authentication-keys-for-two-devise-models On May 18, 8:47 pm, Ivan K. div...@gmail.com wrote: I'm using this new gem active_admin with devise. I followed this wikihttps://github.com

[Rails] Set password on file.

2011-04-13 Thread Ivan K.
User must have opportunity to set password on their files. So what would be the best way to implement it? Is there any gems? Regards, Ivan. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to

[Rails] Re: Set password on file.

2011-04-13 Thread Ivan K.
bit clearer? Thanks. On Apr 13, 6:24 pm, Peter Hickman peterhickman...@googlemail.com wrote: We don't have the faintest idea as to what you are talking about. Please explain the use case for this feature. On 13 April 2011 12:36, Ivan K. div...@gmail.com wrote: User must have

[Rails] Re: Set password on file.

2011-04-13 Thread Ivan K.
The thing to watch out for is that the link for the protected file should be a one time url so that anyone who copies the final link will not be able to download the file That's the goal of this feature :) -- You received this message because you are subscribed to the Google Groups Ruby on

[Rails] Re: Set password on file.

2011-04-13 Thread Ivan K.
minutes of the created_at time_stamp (for example) let them download the file, otherwise present an error page and let them reenter the password. On 13 April 2011 14:48, Ivan K. div...@gmail.com wrote: The thing to watch out for is that the link for the protected file should be a one

[Rails] Re: Set password on file.

2011-04-13 Thread Ivan K.
Thanks a lot, Peter. I got all pieces together now. On Apr 13, 9:10 pm, Peter Hickman peterhickman...@googlemail.com wrote: On 13 April 2011 15:56, Ivan K. div...@gmail.com wrote: Lets say :file_id = 1, :uid = 9 Link would be look like /secure_download/9 How user gonna get the file

[Rails] Match path without controller.

2011-04-07 Thread Ivan K.
Hi. I wanna do something like that: match '/system/videos/:id/original/snapshot.jpg', :as = :snapshot So i could do snapshot_path(id) in my views. Currently i implemented it as a Helper Method. Is there any way to match path without controller? -- You received this message because you are

[Rails] Re: Getting Started with Rails, Postgres, db:create

2010-08-20 Thread Ivan K.
Fernando Perez li...@ruby-forum.com writes: So I created the postgres account blog and gave that account the ability to create databases and users. I guess this assumption is wrong. How did you create the blog user in postgresql? You probably forgot an option when creating it. I was

[Rails] Getting Started with Rails, Postgres, db:create

2010-08-19 Thread Ivan K.
Hello; I have begun the Getting Started with Rails guide at http://guides.rubyonrails.org/getting_started.html which is supposed to create a simple blog. I execute the command rails blog -d postgresql without incident. I am having trouble with the next command in the tutorial: rake db:create.