August 3rd, 2005

Rails Did you know? tips

4 comments on 78 words

UPDATE: Textpattern is doing weird stuff with my code, either way I code it whether escaping it or not it renders as html code on my live site or in RSS readers. Looking into that now.

UPDATE 2: Removed article for now because Textpattern decided to have it’s way with me. Hopefully i’ll get it back soon.

Discussion

  1. Curt Hibbs Curt Hibbs said on August 3rd

    Good tips!

    It would be nice to post these on the Rails site in the HowTo section. Its nice to have everything (searchable) in one place!

  2. Peter Cooper Peter Cooper said on August 3rd

    Good, but you might want to escape some of your code? The top JavaScript one is totally blank in my browser, and the sidebar one is missing the code for the view (it just shows the HTML result!) .. seems it’s getting parsed somewhere along the line? :)

  3. Justin Palmer Justin Palmer said on August 3rd

    Peter, thanks for tell me this.

    Textpattern is doing some very funny things with my code. If I don’t escape the code, then it renders as html on my live site, if I do escape the code then it shows up as html in RSS readers. :-(

    Going to have to do some digging to see where the problem lies. Sorry to those who get a jumbled view.

  4. Seth Seth said on August 3rd

    To simplify handling of multi-selects, just name the select model[collection_ids][] and update_attributes will take care of everything else.

    In your example:
    article[category_ids][]

Sorry, comments are closed for this article.