| macographer | i don't the ApplicationController::DEFAULT_.... part. |
| halorgium | macographer: eh? get? like? |
| macographer | get lol typing too fast. |
| halorgium | i just needed some place to store that array of "allowed actions" |
| pos69sum | is there any place online where there are some examples of rails online quizzes?? |
| macographer | oh, ok. the "ApplicationController::" part is just to specify where the constant is defined? |
| pos69sum | i'd like to see if my schema is even right |
| therealcr0bar | if it's about your database schema any quiz example should be relevant |
| macographer | pos69sum: i think there are a few 'right' ways to do it. |
| halorgium | macographer: yea, cause it is defined in the "current_user" metaclass |
| pos69sum | i'm having trouble also thinking about how form processing methods should look in my controllers |
| action | macographer looks up "prepend_before_filter" |
| macographer | looks up "prepend_before_filter" |
| halorgium | pos69sum: very small :) |
| therealcr0bar | pos69sum: you mean what to put in them or what methods to make? |
| ElricVIII | dagbrown, Wordpress uses XMLRPC, where was I to go from there? |
| macographer | halorgium: why was it important to prepend the method to the before filter? |
| pos69sum | both, i have an idea but this is my first rails app from scratch |
| halorgium | macographer: actually that is a bad idea :P |
| nukio | hey everyone... i have some JOOOOOST invites... does anyone want any? |
| macographer | just because you don't know what other filters i'm using? lol what joost? |
| nukio | on demand TV |
| pos69sum | like youtube right |
| macographer | s/what/what's/ |
| nukio | from the skype peoples |
| macographer | ah. |
| nukio | ;) |
| therealcr0bar | hey i'll take one of those |
| macographer | ok, 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.. |
| halorgium | yea |
| macographer | why is prepending a bad idea? |
| halorgium | macographer: don't want it before the login_required which sets the current_user ... |
| macographer | oh, 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 |
| therealcr0bar | that probably should be (id == self.id) ? id.to_s : nil no |