[Rails] Re: Template Language for a CMS

2009-01-26 Thread DAZ
? Any basic way of starting? cheers, DAZ On Jan 25, 7:19 pm, Macario Ortega rails-mailing-l...@andreas-s.net wrote: DAZ wrote: How would you go about creating a template language that could be used to allow access to *some* helpers for a CMS-style app? For example if there is a text

[Rails] Template Language for a CMS

2009-01-25 Thread DAZ
or write one from scratch? How would you go about writing one? cheers, DAZ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com

[Rails] App Configuration Setting

2009-01-15 Thread DAZ
A Site model, with only one instance File Based Solution Configuration file(s) that can be edited by admins from within the browser What do people think or do in their sites? cheers, DAZ --~--~-~--~~~---~--~~ You received

[Rails] Free Web Icons

2009-01-13 Thread DAZ
Blog Post: http://dazzl.co.uk/blog/icicl-free-icons-for-web-design Download: http://dazzl.co.uk/downloads/icicl-icons.zip Hope some people do find them useful, any feedback is welcome, DAZ --~--~-~--~~~---~--~~ You received this message because you are subscribed

[Rails] Editing Files in the Browser

2009-01-12 Thread DAZ
. If this is possible, how do you do it? Cheers, DAZ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from

[Rails] Re: Editing Files in the Browser

2009-01-12 Thread DAZ
whitelist approach as recommended in the docs. Would it be better to do this sort of thing at a database level - saving the whole CSS text in a Theme model or something? cheers, DAZ On Jan 12, 3:01 pm, Andrew Timberlake and...@andrewtimberlake.com wrote: On Mon, Jan 12, 2009 at 4:37 PM, DAZ

[Rails] Super Classes and Database Tables

2009-01-07 Thread DAZ
these be included in the super class people table and just set as nil for pupils or is there a better way of doing this? Also, I know that I can't use Class for a model name - should I use Klass, Clas or change the name to something like Group? cheers, DAZ

[Rails] Re: Delete All action

2008-12-30 Thread DAZ
a @selected_tasks array somehow from what was submitted and then call delete_all on that? cheers, DAZ On Dec 19, 5:20 pm, DAZ daz4...@gmail.com wrote: Hi, What is the best way to delete all members of a model? For example I have a tasks model and want to put a link in that will delete all tasks

[Rails] Re: Finding Child Records Efficiently

2008-12-29 Thread DAZ
= Person.find_by_name(tree[0]) if tree.size 1 1.upto(tree.size - 1) do |i| person = person.children.find { |child| child.name == tree [i] } end end @person = person Thanks for the help, DAZ --~--~-~--~~~---~--~~ You

[Rails] Finding Child Records Efficiently

2008-12-28 Thread DAZ
descendant records, so that any subsequent filtering is efficient and doesn't hit the database? Hope that makes sense, cheers DAZ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post

[Rails] Authentication Plugins

2008-12-22 Thread DAZ
Just wondering what people would recommend - restful_authentication, acts_as_authenticated ... or something else? cheers, DAZ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post

[Rails] Delete All action

2008-12-19 Thread DAZ
to it be? cheers, DAZ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails

[Rails] Re: Updates using urls and query strings

2008-12-14 Thread DAZ
Cheers Fred, that worked great! DAZ On Dec 13, 11:12 pm, Frederick Cheung frederick.che...@gmail.com wrote: On Dec 13, 7:32 pm, DAZ daz4...@gmail.com wrote: Thanks for the reply Frederick, I just have two questions: 1) How exactly do I coerce it into a boolean value - is there a best

[Rails] jQuery post function

2008-12-14 Thread DAZ
: PUT,completed: true },null, script) cheers, DAZ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from

[Rails] Re: jQuery Rails Functions

2008-12-13 Thread DAZ
: encodeURIComponent (window._token)}); will go to the update action for the task with id 1 Hope that makes sense! cheers, DAZ On Dec 13, 6:53 am, Simon Macneall macne...@gmail.com wrote: Hey DAZ, No probs.  From our code..          $.ajax({              url: /form_datas/correct/+formId, so

[Rails] Unobtrusive Javascript in Rails

2008-12-13 Thread DAZ
or not UJS is worth it or not. If you are happy with the current inline stuff then please continue to use it, but I know that a lot of people want UJS and this is an attempt to make it as easy as possible for them to do that. Looking forward to any thoughts cheers, DAZ

[Rails] Updates using urls and query strings

2008-12-13 Thread DAZ
it might be because ruby is seeing 'false' as a string and therefore 'true'. cheers, DAZ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk

[Rails] Re: Updates using urls and query strings

2008-12-13 Thread DAZ
Thanks for the reply Frederick, I just have two questions: 1) How exactly do I coerce it into a boolean value - is there a best- practice way of doing this? 2) How come this problem doesn't occur when the value is submitted via the form from the edit action? cheers, DAZ On Dec 13, 5:28 pm

[Rails] Re: jQuery Rails Functions

2008-12-12 Thread DAZ
appreciate all the help you have given so far, it has really helped me get to grips with jQueary on Rails - I'm finding it a great way to keep the JS unobtrusive! cheers, DAZ On Dec 8, 9:44 pm, Simon Macneall macne...@gmail.com wrote: That's cool. Depends on the query I think, but it is generally

[Rails] Re: Where do I start?

2008-12-12 Thread DAZ
://guides.rubyonrails.org/ DAZ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email

[Rails] Re: jQuery Rails Functions

2008-12-08 Thread DAZ
, but will have a play around. Also ... is all the authenticity_token stuff essential/best practice or are you just using that as an example? thanks again, DAZ On Dec 7, 10:00 pm, Simon Macneall [EMAIL PROTECTED] wrote: DAZ, http://docs.jquery.com/Main_Pageis pretty good. We use $.post because

[Rails] Re: jQuery Rails Functions

2008-12-08 Thread DAZ
, but will have a play around. Also ... is all the authenticity_token stuff essential/best practice or are you just using that as an example? thanks again, DAZ On Dec 7, 10:00 pm, Simon Macneall [EMAIL PROTECTED] wrote: DAZ, http://docs.jquery.com/Main_Pageis pretty good. We use $.post because

[Rails] Re: jQuery Rails Functions

2008-12-07 Thread DAZ
seem to be using $.post, but I don't really know how this works. Also, I've seen other examples use $.load, and again, I don't quite get how it works. Is there any good documentation on this? cheers again, DAZ Hi, You need to call a function in your drop handler that goes out to rails

[Rails] jQuery Rails Functions

2008-12-06 Thread DAZ
get this to fire a Rails funciton in the controller so that the dropped item could be changed at a database level? For example, when it is dropped, how would I change the updated_at value to Time.now? Thanks, DAZ --~--~-~--~~~---~--~~ You received this message