Here's my simple problem. I can't call a javascript function that's
included in a page after an AJAX post. I think I've encountered
something similar in the past, but can't recall the solution. Here's
my setup:
I have a form on a webpage that submits via AJAX using JQuery and
JQuery-form.
I am working on a project that uses quite a bit of conditional logic
to display information about groups in a list. The partial that
renders the group attributes will display different info based on
whether the user is a) logged in, b) the creator of the group c) a
member of the group, etc.
I
Is there any chance that changing the session store from ActiveRecord
to cookies, and deleting the sessions table could cause performance
problems with my app? Everything was running fine until I made that
change (and added indexing to all my tables). Now the app jumps right
into the swap and
Hi there,
I’m trying to merge JSON results from an API call in with ActiveRecord
results for a blended display in a view. I’d like to be able to merge
the two result sets based on 'created_at' which is is common in both
the ActiveRecord results and the JSON results from the API. Created_at
is
I'm in the process of refactoring an existing Rails app and am
wondering - is it common practice to have a controller for each model
that has CRUD actions? For instance, in my app I have a side bar
where users can add diary entries to a side-bar, highlighting them in
bulletin-board fashion
, 2:09 pm, Greg Donald gdon...@gmail.com wrote:
On Tue, Mar 24, 2009 at 1:03 PM, ressister ressis...@gmail.com wrote:
I'm in the process of refactoring an existing Rails app and am
wondering - is it common practice to have a controller for each model
that has CRUD actions? For instance
I have a rails app and a Mephisto CMS instance running on the same
server. Currently I use the CMS to manage help articles related to the
application. Mephisto runs on a sub-domain of the main domain, think
articles.mydomain.com.
I'd like my routes to work like this:
Hi there,
I have been working on what i would describe as a view selector, a
DHTML drop-down menu that allows a user to view entries by criteria
such as: All, Uncategorized, or by month where the user has entries.
If a user select January from the drop-down, the view is refreshed
and the URL
I have a partial, that generates a list of categories. I'd like to
use the same partial for two different scenarios where data will be
coming from different models. In one case, the partial is grabbing
category data directly from the Category model. In another case it's
grabbing it from an
Hi there,
I currently have two unique sites each requiring a news section which
I planned to content manage through blog software. I installed
Mephisto on the the same server as the two apps, and had it running
successfully, providing news to one of the two sites now in
operation. I then tried
Hi there,
I have a revision, #238 which I've since made changes to and committed
so I'm now on revision #240. I'm not happy with the direction that
I've gone since the two commits I've made, and I want #238 to be the
base. I wouldn't mind keeping #240 around, which i could just do with
a local
Thanks Matt, If anyone could provide an example of the branching
syntax, that would be helpful.
Regards,
-A
On Oct 18, 4:11 pm, Matt Harrison [EMAIL PROTECTED]
wrote:
ressister wrote:
Hi there,
I have a revision, #238 which I've since made changes to and committed
so I'm now on revision
Alright, figured it out. Thanks again Matt for your guidance.
On Oct 18, 5:48 pm, ressister [EMAIL PROTECTED] wrote:
Thanks Matt, If anyone could provide an example of the branching
syntax, that would be helpful.
Regards,
-A
On Oct 18, 4:11 pm, Matt Harrison [EMAIL PROTECTED]
wrote
handlers etc? Can you give me an example of how to do
that? I'm happy to post my drag-and-drop javascript code if that will
help.
Thanks Fred,
-A
On Oct 10, 11:19 am, Frederick Cheung [EMAIL PROTECTED]
wrote:
On Oct 10, 4:12 pm, ressister [EMAIL PROTECTED] wrote:
Hi there,
I have one last
= initiateDragDrop() to my
form_remote_tag expecting that the drag and drop would work after I
posted the form, but it didn't.
What am i doing wrong?
Thanks,
-A
On Oct 10, 12:25 pm, Frederick Cheung [EMAIL PROTECTED]
wrote:
On Oct 10, 4:34 pm, ressister [EMAIL PROTECTED] wrote:
Good point. Right
entries where id not in (select
entry_id from entry_categories)')
HTH,
-Roy
-Original Message-
From: rubyonrails-talk@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of ressister
Sent: Thursday, October 02, 2008 11:58 AM
To: Ruby on Rails: Talk
Subject: [Rails] Grouping
I've got to imagine someone's run into this problem before, though I
can't seem to find a good explanation on how to fix it. Any guidance
would be greatly appreciated...
I have a fixed position div with category names in a column on the
left in my app. In the main body are entries, which a
Hi there, I'm trying to split a string using RegExp to extract a price
from it. The price may or may not have a dollar sign in front of it
and may or may not contain a decimal value. Below are some string
examples of what the regular expression would need to handle to split
out the price:
query. Using :include in finders will modify the structure of your SQL
query. So you have to refer to table names in conditions like this:
:conditions = ['users.user_id = 1']
On Tue, Sep 23, 2008 at 2:00 PM, ressister [EMAIL PROTECTED] wrote:
I'm having trouble with three models
Right Heimdull, thanks. So my model setup is correct for what I'm
trying to achieve you think? Any idea why this works:
@first = Entry.find(:first, :include = :category)
@first.category.name
...and this does not?
@entries = Entry.sum(:price, :include = :category, :conditions =
['user_id =
20 matches
Mail list logo