the application has installed per gemfile.lock
friendly_id (5.1.0)
friendly_id-globalize (1.0.0.alpha2)
the base gem page states "As of version 5.0, Finders are no longer overridden by default. If you want to do friendly finds, you must do Model.friendly.find" while the guide for 5.1 links to the most complete, user-friendly documentation, which states both following forms are possible:
Person.find(82542335)
Person.friendly.find("joe")
Compounding matters the globalize plugin also refers to a compact syntactic version
I18n.locale = :en
Post.find("star-wars")
So there are a few possibilities so wrangle with. The following model set-up:
extend FriendlyId
friendly_id :slug, :use => :globalize
and associated controller action
def show
@staticpage = Staticpage.find(params[:slug])
@the_page = Staticpage.find(2)
only has the find(#{id}) instance variable working, whereas all syntaxes attempted on the first instance variable invariably returns Couldn't find Staticpage with 'id'=
While a working answer would be appreciated, a clarification of uses would be better!