Displaying 20 results from an estimated 6000 matches similar to: "Suggestions for Rails Patterns"
2008 Apr 29
1
Webistrano recipes association (was: [Capistrano] Webistrano 1.3 released)
I see at some point recipes were changed from project-associated to
stage-associated, is there some explanation or examples of that use-case?
Could I request we have both? In my current cap scripts, we don''t have any
stage-specific recipes, but maybe I''m just not understanding this
completely.
On Tue, Apr 29, 2008 at 1:04 PM, Jonathan Weiss
2006 May 28
10
Drag''n''Drop out of overflow:auto containers
Cheers,
I have some elements inside a div with overflow:auto. When I trie to
drag them outside of the div, the div starts to scroll. Is there a way
to stop this behaviour for drag and drop?
I thought of maybe using callback to disable the overflow and restoring
it againg after the drop. Did someone implemented something like this?
Thanks,
Jonathan
--
Jonathan Weiss
2005 May 29
0
Ruby presentation
Cheers,
I uploaded my Ruby presentation that I held in March for some colleagues to
my blog.
The presentation is an introduction and overview to Ruby in German. There is
also a small part about Ruby on Rails but the focus is on the features on
Ruby.
Maybe it''s of use for somebody.
You can find it here:
http://blog.innerewut.de/articles/2005/05/29/my-ruby-presentation
Jonathan
--
2007 Sep 28
3
Why PeriodicalUpdater doesn't work on Internet Explorer?
I have the following code:
<script type="text/javascript">
Event.observe(window, ''load'', function() {
var updater = new Ajax.PeriodicalUpdater(''chatbox'', ''chat.php'',
{method: ''get'', asynchronous: true, frequency: 0.55, decay: 2,
onSuccess: function(){$(''chatbox'').scrollTop=$
2006 Apr 21
4
Scaling Rails with Apache 2.2, mod_proxy_balancer and Mongrel
Cheers,
I''ve just published a blog post about scaling Rails with Apache 2.2,
mod_proxy_balancer and Mongrel. This way you do not need another proxy
server or load balancer for Mongrel. Just use Apache 2.2 and mod_proxy
balancer.
http://blog.innerewut.de/articles/2006/04/21/scaling-rails-with-apache-2-2-mod_proxy_balancer-and-mongrel
Jonathan
--
Jonathan Weiss
2006 Apr 12
3
Apache 1.3 + remote FastCGI balancing
Cheers,
As I have a lot of stability problems with Lighttpd + FastCGI-Cluster I
wanted to test Apache 1.3 as most of the "big" sites like 43people or
BaseCamp run on it.
Every example I find only talks about lokal FastCGI processes and not
about remote ones and explains how the requests are balanced.
Are there any good examples out there and can Apache1.3/mod_fastcgi load
balance
2006 Jan 13
4
Flash not cleared with ActiveRecord session store
Cheers,
I''ve stumbled over a bug with 1.0 and ActiveRecord store for session
while migrating from pstore sessions.
I created the table with `rake create_sessions_table` and set
`config.action_controller.session_store = :active_record_store` in
environment.rb.
Everything runs fine except that the flash messages will not be cleared.
I get the same message everytime on everypage I
2006 Apr 07
2
Prototype 1.5.0_rc0 breaks my Form.serialize
Cheers,
Prototype 1.5.0_rc0 breaks backwards compatability with this diff in
Form.Element.Serializers:
http://dev.rubyonrails.org/changeset/4147
I have explicit value="" in my options and now I get the text submitted.
E.g.
<select id="foo">
<option value="">Please select a value</option>
</option value="1">Nr.
2005 Nov 02
4
Trouble with Umlauts
I am developing an application in German. This means I have umlauts. When I
was using rails version 0.13.1 there seemed to be no further configuration
needed for umlauts to be shown correctly. Now I have upgraded to 0.14.2 and
the umlauts are being displayed at ''?''s. I changed the encoding of the page
and it is UTF-8. I have also tried the steps listed at
2006 Jan 09
4
Problem with habtm and resulting SQL insert
Cheers,
I have a problem with 1.0 and a habtm relationship between User and Article.
I want to save all articles that users read. I have these models:
class User < ActiveRecord::Base
has_and_belongs_to_many :read_articles, :class_name => "Article",
:join_table => "read_articles"
...
end
class Article < ActiveRecord::Base
has_and_belongs_to_many :readers,
2005 Aug 23
2
HTML escape of umlauts
Cheers,
I work on a german site that obviously includes german words with umlauts in
its data.
It seems like the html_escape function (or simply h() function) will not
escape umlauts:
<%=h "ä" %>
Will not produce ä
What is the best way to do this?
Thanks,
Jonathan
--
Jonathan Weiss
http://blog.innerewut.de
2005 Oct 26
1
Problems with Prototype 1.4_rc0/1 and sortables
Cheers,
I use the javascript lib from
http://www.kryogenix.org/code/browser/sorttable/
to sort tables. With prototype 1.4pre11 and earlier sorting in Firefox and
IE works, with RC0 and RC1 it does not. Safari worked with 1.4pre6 or 7 but
does not work with pre11.
Somebody also seeing this?
Regards,
Jonathan
--
Jonathan Weiss
http://blog.innerewut.de
2005 Dec 09
0
How to use JavaScript in link_to_remote?
Cheers,
I have a form with an input inside that I want to be able to submit by
itself (I want to let the user create new tags with this input and use them
to tag the whole content that is posted by the rest of the form).
I have this layout:
<form ...>
<input type="text" id="new_tag" />
<%= link_to_remote "Schlüsselwort hinzufügen",:url => {
2006 Feb 05
2
Continuous Integration question (not CIA question)
On 2/5/06, Joe Van Dyk <joevandyk@gmail.com> wrote:
> On 2/4/06, Jonathan Weiss <jw@innerewut.de> wrote:
> > Joe Van Dyk wrote:
> > > Hi,
> > >
> > > I''d like to set up CIA. So I added the plugin to my app, went to my
> > > subversion server, added the post commit, added a build directory.
> > >
> > > I checked
2005 Sep 06
0
Problem with form_remote_tag
Cheers,
I stumbled over a problem/bug with form_remote_tag.
I have a view with
<%= form_remote_tag(:update => "update_div",
:url => { :action => :top_flop },
:loading => "Element.show(''top-flop-indicator'')",
:complete =>
2006 Apr 20
12
memcache, sessions, fragments, oh my!
Hi all -
I am trying to get rails to use memcache for sessions and fragment
caching. I''d also like to use the same connection for general caching of
this and that.
I''m following the instructions here:
http://wiki.rubyonrails.com/rails/pages/HowtoChangeSessionStore
and hitting a brick wall.
I''m using the new memcache-client since from what I''ve read
2013 Apr 11
2
[LLVMdev] Migration from JIT to MCJIT
Submitted to bugzilla as PR 15729
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Kaylor, Andrew
Sent: Thursday, April 11, 2013 1:13 PM
To: Weiss, Eran
Cc: llvmdev at cs.uiuc.edu
Subject: Re: [LLVMdev] Migration from JIT to MCJIT
Thanks, Eran.
I’m not sure how soon I’ll have a solution for you, but it’s on my to-do list now. I’ll also create a bugzilla
2013 Apr 11
0
[LLVMdev] Migration from JIT to MCJIT
Thanks, Eran.
I’m not sure how soon I’ll have a solution for you, but it’s on my to-do list now. I’ll also create a bugzilla record for this problem.
-Andy
From: Weiss, Eran [mailto:Eran.Weiss at emc.com]
Sent: Thursday, April 11, 2013 12:40 AM
To: Kaylor, Andrew
Cc: llvmdev at cs.uiuc.edu; Jim Grosbach; Jiong Wang
Subject: Re: [LLVMdev] Migration from JIT to MCJIT
Andrew,
I've attached
2006 Jan 22
7
: Indexed Search Engine 0.1.3 Released
Hello all,
IndexedSearch Engine for Rails Engines version 0.1.3 has been released.
IndexedSearch is a simple, pluggable engine for rails applications which can
be used to enable full text indexed searches within an application.
Searchable data is parsed, stemmed using the Porter stemmer, and added to a
fully indexed table. This allows you to index things like "he runs fast"
which will
2013 Apr 11
2
[LLVMdev] Migration from JIT to MCJIT
Andrew,
I've attached a small reproduction of the issue.
Reproduce by:
$ /usr/bin/g++ `llvm-config --cxxflags` -g -m32 -c mcjit_external_symbol.cpp
$ /usr/bin/g++ `llvm-config --ldflags` -g -m32 -o mcjit_external_symbol mcjit_external_symbol.o `llvm-config --libs all`
$ ./mcjit_external_symbol
verifying...
LLVM ERROR: Program used external function '_external' which could not be