Displaying 20 results from an estimated 1200 matches similar to: "Transactions in RoR"
2006 Jul 03
6
Rjs $("aaa").insertHtml is not a function error
Hi,
I''ve searched the list and found that someone had the same problem as me
http://lists.rubyonrails.org/pipermail/rails/2006-May/043760.html
I''m have in my page a link like this
<%= link_to_remote ("Add
#{image_tag(''add.png'')}",:url=>{:action=>''addProduct''})%>
and in my controller
def addProduct
..................
2006 Mar 28
5
RJS call from controller issues javascript that doesn''t get evaluated by browser
Hi,
I''m on Rails 1.1 and I have a problem wit RJS
In my cotroller i have
==>>>
def show
@contact = Contact.find(params[:id])
render :update do |page|
page[:contactInfo].replace_html :partial=>"contactInfo"
end
end
<<<===
And my contactInfo partial looks like this and it''s placed inside a div element
==>>>
<table>
2006 Mar 14
7
Starting with RJS - not working
Hi,
I''m trying to work with RJS and folowed Cody Fauser''s tutorial
(http://www.codyfauser.com/articles/2005/11/20/rails-rjs-templates)
I''ve started by creating a new rails applications and executing
rake freeze_edge
rake rails:update:javascripts
rake rails:update:scripts
After that I''ve created a controller:
class DtestController < ApplicationController
2006 May 11
2
Reuse code
Hi,
I have several helper methods that I use on one view . Is there a way
to share this methods on several views ?
To be more specific in: companies_helper I''ve defined the helper
methods that I would like to use in products section.
Thanx,
Ovidiu
2006 Apr 07
3
List of all Models
Anyone know a pretty way to get a list of all Models?
That is, a list of all classes which inherit from ActiveRecord:Base
I can''t seem to figure it out!
The best I''ve got is to list the /app/models directory... but, that is
*dirty*.
-hampton.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Apr 24
3
Regex in HTML
So, I''m trying to write a nice bit of regex to handle finding anchor tags in
a bit of html.
This is what I''ve got....
/<[aA][^>]*>[^<]*<\/[aA]>/
I''m planning on using this with a gsub!.
Here is what it has to do....
<html><a href="http://stuff.com" class="link">Anything in here.</a></html>
As you can
2006 May 16
1
Nice Ruby tutorial for begginers
http://tryruby.hobix.com/
2006 Apr 22
6
Friendly Reminder (OT)
Today, I had a tragic hard drive crash. I hadn''t updated anything to SVN in
two weeks.
I''m posting this here as a reminder to my beloved Rails community.
Everyone, right now..... make a backup of your rails work. Make sure its on
two disks. Many of you already do that automatically, but just make sure its
working.
Two near-release rails plugins were lost in the tragic crash
2006 Apr 05
25
How to avoid bunch of <% %> ??
Hello, I would like to know is there is a way to avoid poluting the
views with tons of <% %> ?
Like this
<%= start_form_tag() %>
<%= text_field_tag(''category[title]'', category.title, {:size => 20,
:maxlength => 128}) %>
<% if not category.parent_id.nil? %>
<%= select("category", "parent_id",
Category.find(:all,
2006 Apr 07
1
Validate_presence_of error in nested object is not displayed
Hi,
I have a contact object . This contact has a address object
>>Contact
class Contact < ActiveRecord::Base
has_one :address
validates_presence_of :first_name ,:last_name
end
.>>> Address
class Address < ActiveRecord::Base
belongs_to :contact
validates_presence_of :address
end
Addres has the following fields ; address, phone, fax, email
In the contacts_controller I
2007 May 26
1
make_resourceful 0.1.0 Release!
I am extremely proud to put the code up live for make_resourceful! I
have been astonished by the positive feedback I''ve been receiving
since our talk at this year''s RailsConf. So much pressure to get this
thing out!
If you haven''t heard about it... then check out my slides from
railsconf http://www.hamptoncatlin.com/assets/2007/5/21/make_resourceful.pdf
or listen to the
2006 Apr 13
8
DevTower Beta3 Release!
DevTower Beta3! (0.3)
I''m proud to announce some major changes and improvements to DevTower in
this beta release! First and foremost, DevTower is now a full plugin. Also,
DevTower works (only) with Rails 1.1.
==== ABOUT =====
DevTower used to synchronize the development of Ruby On
Rails applications with developers working simultaniously
on multiple systems with Subversion. DevTower
2007 Mar 16
1
Polymorphic find_or_create bug
Today I just spent 3 hours (and before a demo!) trying to figure out
why my polymorphic association fields were breaking.
Turns out someone else put in a patch for this 6 months ago. I''m not
sure if its the same solution I''d use... I''d rather find_or_create
attempt to use AssociationProxy#build if its available and only
Base#new if we''re not on a proxy.
2006 May 19
7
AR transactions and isolation levels
I''m trying to create a sequence with no gaps in my db (contrived
example, but should work out the same as my real one), and believe
db-managed transactions are the way to go about this.
It''s my first real ''go'' at transactions, so I may be mistaken about
how things really work.
Anyway.. Consider this example code:
Class Invoice < ActiveRecord::Base
def
2006 Apr 06
8
Fastest learning path to RoR
hi!
with a 4GL background, wanting to learn RoR, what is the fastest
learning path i should take? should i go grab a RoR tutorial, and learn
Ruby along the way, or start with plain Ruby first?
thanks for any inputs!
2006 Mar 25
14
Creating a symbolic link within a Rails application?
Hi, how does one create a symbolic link within a Rails application? At this
time, I can perform this action at the command line but I''m not sure how to
do it within Rails. BTW, I''m doing the following command in Mac OS X:
ln -s $SITE_ROOT/common_directory/* $SITE_ROOT/new_directory
Thanks in advance,
-Conrad
-------------- next part --------------
An HTML attachment was
2015 Feb 10
2
Dovecot 2.2.15 issues with global ACL
Hello,
We have upgraded from Dovecot 2.2.13 to 2.2.15 and we are using global ACL file.
The content of the ACL file is as following:
* owner r
INBOX owner lrwstipekxa
INBOX/* owner lrwstipekxa
user owner rwstipekxa
user/* owner rwstipekxa
This worked fine but after update any user cannot see any folders from under the INBOX, also they cannot create any new folders.
Error into the logs are
2006 Aug 18
5
potential enterprise rails project
Hello Rubyists,
I''m in the position of being given the job to design and build a
mission-critical web facing application for a small but growing
enterprise. It is to be used by customers as needed, numbering in
the tens up to the hundreds. It will collect operational data,
particularly in a table around 50 columns wide, and potentially
millions of rows deep, most fields being numerical.
2007 May 15
4
Need help with singleton worker
We have a fairly expensive task that we''d rather not schedule too many
instances of in parallel.
Couldn''t get pool_size to limit the amount of workers, and I figure
that''s hardly optimal anyway, so would like to have the work queued up
for a single named worker instead, running as soon as possible.
Using MiddleMan.schedule_worker() with :job_key does start off a
2011 Dec 06
3
Riak on Camping
Good day, does anyone here have a clue on how to make use of the NoSQL
database "Riak" with Camping?
I am building my website and Riak seems like pretty much the ultimate
database!
This would probably ruin every little feature in ActiveRecord, I don''t
think I''d be able to do any has_many''s or belongs_to
but I''d LOVE to be proven wrong. As far as