[Rails] Re: rendering view via jQuery

2010-08-06 Thread Trish
Oh... and as far as the old-school markup goes... I was just using the code for the example I was working off of just to see if I could make things work. The partial will be completely different when I'm done with it. On Aug 6, 10:01 am, Trish wrote: > Thank you so much.  I just

[Rails] Re: rendering view via jQuery

2010-08-06 Thread Trish
Thank you so much. I just realized that myself. I can't believe I missed that simple mistake. I was so busy looking for something major, I overlooked a simple bug. How embarrassing. Thanks for your help, Trish On Aug 6, 9:06 am, Hassan Schroeder wrote: > On Fri, Aug 6, 2010 at

[Rails] Re: rendering view via jQuery

2010-08-06 Thread Trish
script coming across is shown to be this: $("#2").after("") I'm going crazy trying to do something that seems so simple, but the unexpected keeps getting in my way. On Aug 6, 6:52 am, Trish wrote: > Thank you for your replies.  I verified that jQ is loaded in my > h

[Rails] Re: rendering view via jQuery

2010-08-06 Thread Trish
ith line breaks... javascript could not interpret it properly since it was seeing multiple lines instead of a string like: "\n\n\n\n". It was returning it as: " " But I'm not totally sure... if that was the issue. Thanks again for all of your help, Trish On Aug 6, 2:12 am, An

[Rails] Re: rendering view via jQuery

2010-08-05 Thread Trish
plenty of formatting to do, but I hope this was my last major hurdle. If you do have any more input on this issue (or thoughts on why I ran into my problems), please let me know. I would love to figure out what was going on,. Thanks for your help, Trish On Aug 5, 11:34 pm, Trish wrote: > It&#x

[Rails] Re: rendering view via jQuery

2010-08-05 Thread Trish
t, I get a javascript error saying "r is null". I believe it is failing on one of my tags. I appreciate any guidance you can give me on this. I have been trying to solve this sorting issue for days, now, with various methods... and just when I feel like I'm close, I run into a w

[Rails] rendering view via jQuery

2010-08-05 Thread Trish
00 code for $.post. Also, I have tried this with both jQuery 1.4 and the jQuery instance provided with the plugin. Thanks in advance! Trish -- 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 rub

[Rails] Re: Complex associations

2010-08-05 Thread Trish
Thank you for your help. As you suggested, I decided to handle the sort on the front end with a jQuery plugin. That resolves my issues with this, and no longer need to worry about creating a complex Active Record call. Thanks for your help! Trish On Aug 3, 8:59 pm, Angel Robert Marquez wrote

[Rails] Re: Complex associations

2010-08-03 Thread Trish
See below... Thanks! Trish On Aug 3, 11:00 am, Angel Robert Marquez wrote: > > Thank you for your response.  However, I am refactoring an existing > > application, and am trying to remove a bunch of pure SQL that was put > > in the code.  I believe the best way to do th

[Rails] Re: Complex associations

2010-08-03 Thread Trish
JOIN stores on stores.id = products.store_id OR stores.id = departments.store_id However, I am also using an :include option for several associations, and it seems that joins and include are mutually exclusive. I'd really had to have to write out all of the associations. Any thoughts? Thanks! T

[Rails] Complex associations

2010-08-02 Thread Trish
ugh an association instead of just through a function because I want to gain the dynamic methods created by has_many, specifically the "collection.find(...)" method so I can add more conditions to the collection. Is there a way to do this? Thanks in advance! Trish -- You received thi