Norman Clarke norman

Organizations

@keplerproject @haml @flexminder
norman commented on pull request norman/friendly_id#644
@norman

@tekin sorry for the delay, I'll try to make time for this soon and get it (and the other PRs that are accumulating) merged in.

@norman
Using `username` instead of `slug` as model attribute
norman commented on issue norman/friendly_id#657
@norman

No worries, there's a lot of documentation and sometimes it's hard to find the one sentence that explains how to do what you want to. Thanks for fo…

norman commented on issue norman/friendly_id#653
@norman

Yes - that looks correct - sorry, I was typing this from memory not trying it in an application as I wrote.

norman commented on issue norman/friendly_id#650
@norman

Thanks for reporting. The sequence separator is a part of the :slugged addon, which is why you're not seeing it defined in the Configuration class.…

norman commented on issue norman/friendly_id#654
@norman

Some work is still needed for edge cases, but it appears fairly solid to me. I do not recommend you use it in a production application but if you h…

@norman
Correct way to integrate
norman commented on issue norman/friendly_id#653
@norman

You can override to_param method in all the models you want to do this for, as described in #641. In the places you want the friendly id in the URL…

@norman
Regenerate slugs with scope
norman commented on issue norman/friendly_id#647
@norman

I haven't heard back in a while so I assume your question has been answered. Closing the issue.

norman commented on issue norman/friendly_id#654
@norman

Yes, that feature will be added in the next version, though there's currently no timetable for the release. See this pull request for more details.

@norman
Can we provider a functionality to generate slug in sequence in case of duplication?
norman closed issue haml/haml#835
@norman
Downcasing of a camelCase html attribute in a link tag?
norman commented on issue haml/haml#835
@norman

Haml will render this as <a class='back link' data-forceUrl='true' href='/'></a> So yes, I think the problem lies elsewhere. Are you checking the …

norman reopened issue haml/haml#835
@norman
Downcasing of a camelCase html attribute in a link tag?
norman closed issue haml/haml#835
@norman
Downcasing of a camelCase html attribute in a link tag?
norman commented on issue haml/haml#835
@norman

Yes - it can sometimes be confusing to figure out if behavior is coming from a Rails helper used in your template, or from Haml itself. In this cas…

norman commented on issue norman/friendly_id#649
@norman

Ouch. I guess if that's the case, a better recommendation would be: if params[:id] != @post.friendly_id return redirect_to @post, :status => :moved…

norman commented on issue norman/friendly_id#649
@norman

It definitely used to work, but it's actually been ages since I've used that in an application.

norman commented on issue norman/friendly_id#642
@norman

Thanks for such an outstanding bug report, and my apologies for taking so long to respond. I agree this should be fixed, and am looking into the be…

norman commented on issue norman/friendly_id#642
@norman

:heart: :green_heart: :blue_heart: :yellow_heart: :purple_heart:

norman commented on issue norman/friendly_id#648
@norman

No, there's no extra API for this since find_by_slug is sufficient. An alternate strategy is to find the record and then raise an error if the mode…

norman commented on issue norman/friendly_id#647
@norman

Sorry about that - if you want to preserve history you can try updating the scope on the slug record: Page.transaction do Page.find_each do |page| …

norman commented on issue norman/friendly_id#647
@norman

Setting the slug to nil and then saving the record will cause it to be regenerated. Something like: Page.transaction do Page.find_each do |page| pa…

norman commented on pull request haml/haml#834
@norman

Ok, thanks.

norman closed pull request haml/haml#834
@norman
Add a gotchas section to Interpolation.
norman commented on pull request haml/haml#834
@norman

This is super passive agressive. Thanks anyway, I'll close this and add the docs myself.

norman commented on issue haml/haml#832
@norman

@envygeeks When I posted that I was on vacation, on the beach, watching my kids and posting from my phone. Sorry to have been brusque - you're quit…

norman commented on issue haml/haml#833
@norman

These attributes could be specified in the markup and given to the filter We've kicked around allowing paramters for filters for a while now, but…