#rubyonrails - Wed 9 May 2007 between 01:01 and 01:11



macographeri don't the ApplicationController::DEFAULT_.... part.
halorgiummacographer: eh?
get?
like?
macographerget
lol
typing too fast.
halorgiumi just needed some place to store that array of "allowed actions"
pos69sumis there any place online where there are some examples of rails online quizzes??
macographeroh, ok. the "ApplicationController::" part is just to specify where the constant is defined?
pos69sumi'd like to see if my schema is even right
therealcr0barif it's about your database schema any quiz example should be relevant
macographerpos69sum: i think there are a few 'right' ways to do it.
halorgiummacographer: yea, cause it is defined in the "current_user" metaclass
pos69sumi'm having trouble also thinking about how form processing methods should look in my controllers
actionmacographer looks up "prepend_before_filter"
macographerlooks up "prepend_before_filter"
halorgiumpos69sum: very small :)
therealcr0barpos69sum: you mean what to put in them or what methods to make?
ElricVIIIdagbrown, Wordpress uses XMLRPC, where was I to go from there?
macographerhalorgium: why was it important to prepend the method to the before filter?
pos69sumboth, i have an idea but this is my first rails app from scratch
halorgiummacographer: actually that is a bad idea :P
nukiohey everyone... i have some JOOOOOST invites... does anyone want any?
macographerjust because you don't know what other filters i'm using?
lol
what joost?
nukioon demand TV
pos69sumlike youtube right
macographers/what/what's/
nukiofrom the skype peoples
macographerah.
nukio;)
therealcr0barhey i'll take one of those
macographerok, right now the current_user function is sitting in the authenticated_system.rb file that is included in the application controller. and i pretty much need to use this in a ton of controllers, so this should probably go in the application controller..
halorgiumyea
macographerwhy is prepending a bad idea?
halorgiummacographer: don't want it before the login_required which sets the current_user ...
macographeroh, i just noticed that i've got a before_filter that is logging in from a cookie, if the browser has one..
viewlogic_can someone explain what this does: (id = self.id) ? id.to_s : nil
therealcr0barthat probably should be (id == self.id) ? id.to_s : nil no

Page: 2 9 16 23 30 37 44 51 58 65 72 79 86 93 100 107 

IrcArchive