Questions tagged [permalink-fu]

7 questions
3
votes
2 answers

Rails, How can I combine multiple model attributes to create a unique permalink using permalink_fu?

Can Permalink_fu combine 2 or more model attributes to create a unique permalink? Let's say I have a Business Model, this model contains :name, :address, :phone, :city, :state, :country etc. attributes. Right now I have permalink set up in this…
Ranknoodle
  • 847
  • 12
  • 28
2
votes
2 answers

Permalink-fu plugin not working for me in Rails 3

I'm using Rails 3 and I've downloaded the permalink-fu plugin (I've installed and used it in Rails 2.3.8 several times without any issues), but when I go either to the New or Show view of my model (it's called List), I get the following…
Brian Roisentul
  • 4,590
  • 8
  • 53
  • 81
1
vote
1 answer

Subclassing ActiveRecord with permalink_fu in a rails engine

This question is related to extending class methods in Ruby, perhaps more specifically in the way that permalink_fu does so. It appears that has_permalink on a model will not be available in a derived model. Certainly I would expect anything defined…
aceofspades
  • 7,568
  • 1
  • 35
  • 48
0
votes
1 answer

how to category/subcategory/city/firm-name url?

i am using ruby on rails i have models -category -subcategory -city -firm when i click on category it will show sub categories and permalink should be: example.com/category when i click subcategory it will show firms and city names.…
kkalgidim
  • 1
  • 1
0
votes
1 answer

Implementing Permalink Structure

Is it possible to implement permalink Structure in a Custom PHP Product? If so could someone guide me how to do so. I have bunch of PHP Files where head.php is being called initially. I have introduced a variable admin_id in all the SQL Statements…
Shahrukh Khan
  • 316
  • 1
  • 3
  • 15
0
votes
1 answer

how to update permalink column is null using permalink_fu in rails console?

How to update column permalink null using permalink_fu in rails console? Let say i have a table_name article,the column is title and permalink. I want to update only the null permalink.
0
votes
3 answers

Validate no routing overlap when creating new resources in Ruby on Rails

I've got a RESTful setup for the routes in a Rails app using text permalinks as the ID for resources. In addition, there are a few special named routes as well which overlap with the named resource e.g.: # bunch of special URLs for one off views to…
madlep
  • 47,370
  • 7
  • 42
  • 53