14 Oct '12, 11am

Request Controller Name in View? - Ruby Forum

On Jan 31, 2008, at 8:21 AM, Mario Flores wrote: > I was wondering if there were anyway to return the controller name > in my > view. Any help would be appreciated. Thanks! Views have a pointer to the controller, but I always setup a couple of convenience variables in ApplicationController that additionally follow Rick's authentication plugins notation (@current_user): before_filter :set_controller_and_action_names def set_controller_and_action_names @current_controller = controller_name @current_action = action_name end -- fxn

Full article: http://www.ruby-forum.com/topic/140912

Tweets

A Poison By Any Other Name

A Poison By Any Other Name

care2.com 13 Oct '12, 3pm

There’s increasing evidence that a common poison available in many consumer goods has gone and changed its name. Aspartame...

mrbrown.com: Name and Shame

mrbrown.com 18 Oct '12, 6am

Here's a possible future scenario: MOE: "If you break your bond, we will name & shame you on our website." Scholar: "I alr...

EZ117 IS NOW LAUNCHED! CLICK HERE TO VIEW > (PL...

eatingzombie.com 25 Oct '12, 4am

Click here to view the directions to our Office/Studio for self-collection!

Portraits of people & their teddy bears painted...

tatler.com 15 Oct '12, 1pm

Aristotle said "pleasure in the job puts perfection in the work" and, bearing this in mind, Sandro Kopp has put together a...

A Cabbie’s view of London | CabbieBlogCabbieBlog

A Cabbie’s view of London | CabbieBlogCabbieBlog

cabbieblog.com 24 Oct '12, 1am

The Knowledge was introduced in 1851 after complaints by visitors to the Great Exhibition that cabbies didn’t know where t...

My Saturday view.  @ National Museum of Singapore

My Saturday view.  @ National Museum of Singapore

instagram.com 20 Oct '12, 2am

brendasherelle ☁When the stars refuse to shine and time is no more, You'll still be faithful oh Lord☁ 1028 photos 389 foll...

@alex_gaynor Ruby on Rails is – depending on wh...

headshift.com 15 Oct '12, 4am

There’s been no shortage of “magic bullet” technologies over the years, and one of the hottest things in web development a...