Displaying 20 results from an estimated 100 matches similar to: "Time based fragment caching plugin"
2006 Aug 22
7
AJAX Support and Rails
Hello there,
This is my first post to the Ruby group. I am also new to the language
and the Rails framework, it is an amazing place to be now. Coming from
a PHP/ASP background I am glad something like Rails finally made it
into web development.
Now to my question. I have been readying a lot about AJAX, and I
wondered what kind of support is built-in into Rails for it. I read
somewhere that
2006 Jul 22
1
browser_detect plugin
I just knocked up a quick plugin based on Rafael Lima?s Javascript which
was inspired by the Browser selectors in CSS post by 37signals.
It?s pretty naive at the moment, but could be nice to build on in the
future. It adds two helper methods available in your views - browser_is?
and browser_name
<%= browser_name %> => mozilla (or whatever)
<% if browser_is? :mozilla %>
do
2006 Jun 08
0
acts_as_versioned_association plugin
Building on the great ''acts_as_versioned'' plugin by technoweenie, I''ve
written a small plugin which also stores versions of associations.
It''s early and experimental at the moment, but does work.
For example:
class Article < ActiveRecord::Base
has_many :images
has_and_belongs_to_many :categories
acts_as_versioned
acts_as_versioned_association
2006 Aug 13
0
Major update to acts_as_versioned_association
I''ve spent the weekend giving my acts_as_versioned_association (or
version_association for short now!) some much needed attention.
Unit tests have gone from a shameful 150 lines to well over 700 now -
around 1:3.5 code to test ratio. There''s still probably a lot which
needs testing, but it should be a lot better now.
It''s a fairly major update and there are some
2008 Jan 30
0
Re: Paypal and subscriptions
Richard,
My name is Ron Coleman, a business development manager at EC Suite. We
specialize in on-line transaction processing and provide an an inclusive
e-commerce toolset designed to reduce the cost of processing and marketing
while you focus the managing of your business. Our subscription billing
service allows for flexible pricing options and multiple payment types. You
can create, cancel, and
2006 May 19
1
LoadError - no such file to load -- pathname (Dreamhost)
I''ve started getting the following error on Dreamhost when trying to run
any scripts or dispatch.*
[barry]$ ruby -d script/server
Exception `LoadError'' at ./script/../config/boot.rb:6 - no such file to
load -- pathname
./script/../config/boot.rb:6:in `require'': no such file to load --
pathname (LoadError)
from ./script/../config/boot.rb:6
from
2005 Aug 19
1
In place editor, load in text
I''ve been testing the in-place-editor on a few things and it works well.
One use-case I''ve just come across though is the need to load in the
text from somewhere other than the source of the page.
For example, I have a block of text which is marked up in
texttile/markdown/whatever. Editing that block should bring up the
unformatted markup, not the HTML it''s turned
2006 Jan 20
1
stack level too deep from has_many / belongs_to relationship
I have the following 3 models (2 models joined by an intermediate):
1. class Exercise < ActiveRecord::Base
2. has_many :routines, :class_name=>''RoutineExercise''
3. end
1. class Routine < ActiveRecord::Base
2. has_many :exercises,
3. :class_name=>''RoutineExercise'',
4. :order=>''position''
5. end
1. class
2006 Feb 20
3
file_column and login_engine incompatibilities
Hi, has anyone come across any incompatibilities between file_column and
login_engine?
I''ve been having strange issues where a User model with file_column in
it is failing to save the images properly. Everything uploads to the tmp
dir fine, but then it never gets copied to the proper permanent location.
No errors - everything happens fine except for that final part.
I have
2006 Feb 10
2
Paypal and subscriptions
Does anyone have any experience with subscriptions and PayPal?
I''m currently weighing up the options of what payment system to use for
an upcoming project which is subscription based and am not sure if
PayPal is capable of doing what I want and if I need to setup a merchant
account instead.
Basically it''s the same kind of payment structure as BaseCamp. 3 or 4
accounts which
2006 Apr 06
1
Primary keys and migrations
I have a join table I''m creating with a migration as follows:
create_table :read_global_messages, :id=>false do |t|
t.column :user_id, :integer
t.column :message_id, :integer
end
So far so good, however I want the primary key to be user_id and
message_id. How do I do this?
I tried the following, but that doesn''t work:
add_index
2005 Aug 15
1
html_options for select_date
As far as I can tell, it''s not possible to use html_options in
conjunction with the select_* helpers.
This means using them in conjunction with observe_field etc is pretty
much impossible.
Does anyone have a patch to add this functionality, or know of a workaround?
I''m having a look at the moment, but not sure how to get it working
without breaking existing stuff.
--
2006 Apr 05
4
How to do IN(?) query?
I''m trying to do an IN query, where I have an array of user objects
imaginatively named ''users'':
:conditions=>["user_id IN (?)", users.collect{|u| u.id }.join('','')]
this ends up with:
... IN(''1,2,3'') ...
Obviously I want this to be:
... IN(1,2,3) ...
or even
... IN(''1'', ''2'',
2005 Aug 15
5
Customized Autocompletion
In the customized autocomplete demo, how does it know what content to
use as the value of the autocomplete?
The returned UL has the name, email address and an image. Yet only the
name is used.
How does it do this? I''ve been trying to get something similar going all
morning with little success.
Also, what does :skip_style=>true do? I couldn''t seem to find a mention
of it
2006 Jun 19
0
url_for missing out parameters?
Having a bit of an issue with url_for
The current page I''m on has a named route as follows:
map.some_page ''page/:id/:range'', :action => ''the_action''
All looks fairly normal. I have an url_for on this page to make a link
to another page as so:
url_for(:controller=>''other'', :action=>''display'', :id=>5,
2006 Apr 08
0
Help working with timezones
I have a number of timezone related issues which I''m currently confused
about.
I want to store all times in the database as UTC/GMT so that I can then
massage them to be displayed how I like at a later date.
I''m using the TZInfo class at the moment to convert timezones and to
deal with daylight savings time.
My main question is how do I ensure all data is stored as UTC when
2005 Aug 12
1
Ghostly bug in sortables
When a sortable has ''ghosting'' enabled, it seems to include the dragged
element twice in the list which is submitted in the onUpdate AJAX request.
By the looks of it, it''s appended onto the end of the list when
Sortable.serialize is called.
IE in the following list:
- 1
- 2
- 3
If I drag 3 to be at the top, what we expect is:
[3, 1, 2]
What we get is:
[3, 1, 2, 3]
2005 Aug 21
0
[PATCH] in-place-editor, AJAX loading
I sent this on Friday but somehow managed to email it to the wrong email
address!
----
Attached is a patch to add external (AJAX) loading of content to the
InPlaceEditor.
2 extra options have been added:
loadUrl:
a URL to load the content from. If this is present, it will be used
instead of the innerHTML.
fieldId:
I had to add this so we know what the text field is when we''ve
2005 Nov 04
0
Dispatch error on textdrive
Any ideas what coule be causing this error when I run dispatch.cgi?
xxx@gilford$ ./dispatch.cgi
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.10.2/lib/action_controller/request.rb:13:in
`method'': undefined method `downcase'' for nil:NilClass (NoMethodError)
from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.10.2/lib/action_controller/request.rb:23:in
`post?''
2006 Jan 05
5
File_column crashing WEBrick when using :magick options
I''m trying to use file_column in an app I''m writing. Simple file uploads
are working fine.
However, when I try and use the :magick options to make resized
versions, WEBrick dies.
This is the Media model:
class Media < ActiveRecord::Base
file_column :media_item,
:magick => {
:versions => {
:thumb => {:size =>