Modify topic featured link


#1

I haven’t found any way to modify the featured link for a topic

How can I achieve that?


(Simon Cossar) #2

The only way I can see to modify the featured link is to edit it through the rails console.


(Jeff Atwood) #3

You can only delete it, not modify it at this time.


#4

Can you give me a hint for the command?


(Simon Cossar) #5

Find the topic_id that you want to change the featured link for - it’s the first number in the URL in your browser’s address bar. SSH into your server and enter the rails console. Then run:

t = Topic.find(your_topic_id)
t.featured_link = 'http://example.com/new/featured/link'
t.save