Displaying 20 results from an estimated 33 matches for "willit".
Did you mean:
willis
2008 Apr 13
3
Can't get simple link_to_remote to work
AFAICT, this is all I need to do to get a simple example working:
the <head> should have this:
<%= javascript_include_tag :defaults %>
My test page view should have a div with an id and the ERB like this:
<%= link_to_remote ''Click Me'',
:url => {:action => ''show_time'',
:update => ''time_box''} %>
2006 Aug 15
20
Talking to Java APIs
...not finding it, or I''m not recognizing it.
I''m assuming there has to be a Ruby API that allows someone to write
some Java, wrap it, and have Ruby send params and recieve some
results via that wrapped up Java chunk?
Any clues to point me in the right direction? THX.
-- greg willits
2008 Feb 12
4
Syntax of session's updated_at field ?
What''s the syntax to acquire the updated_at value of a session stored
in a db?
session.updated_at doesn''t work. can''t find any docs on this.
-- gw
--~--~---------~--~----~------------~-------~--~----~
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
2009 Aug 16
4
How show validation errors in form_remote_tag?
I suspect this has been asked 400 times, but Google yields 2-3 rather
complex gymnastics in blogs (and possibly dated), and searching list
archives on ruby-forum proves kinda useless.
Using standard forms, it''s fairly easy to use
@object.errors[:field_name] in the form to embed an error message right
next to the field that has the invalid entry. The controller uses a
simple conditional
2008 Jan 09
9
mongrel, monit, and the many, many messages
Monit 4.9, Mongrel 1.0.1, Rails 1.2.6, Mac OS X 10.4.11 (PPC)
I don''t know whether this is a mongrel issue or a monit issue.
I''m trying to poke my way around a system set up by someone else. I have
no more experience w/ mongrel that local Rails dev at this point, and a
conceptual understanding of how monit is working. I have the Deploying
Rails beta book, and I''m
2006 Jun 17
1
FYI: Araelium Edit 1.0 Public Preview 1
From: Seth Willits <seth@freaksw.com>
Date: Sat 17 Jun 2006 01:57:52 GMT+02:00
To: Multiple recipients of RealBasic-OffTopic
<rbofftopic@starionhost.net>
Subject: [ANN] Araelium Edit 1.0 Public Preview 1
Reply-To: rbofftopic@starionhost.net
This is what I''ve been doing for a long long time.
-...
2010 Jun 11
2
AR after_initialize quandry
...by-forum.com/topic/86173
My after_initialize is just this simple code:
def after_initialize(asset_path)
@asset_path = asset_path
end
So either a) what is the proper technique for using after_initialize, or
b) is there another way I can pass params to an AR model in a .new call
?
Thx.
-- greg willits
--
Posted via http://www.ruby-forum.com/.
--
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, s...
2007 Oct 11
9
mongrel_rails not starting
os x 10.4.10
used gem to install mongrel 1.0.1. seemed to go w/o errors.
"mongrel_rails start -d" spits out this error
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/http11.bundle:
Failed to load
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/http11.bundle
(LoadError)
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in
`require''
2006 Aug 17
7
preventing multiple logins
I want to set my app up to prevent multiple simultaneous logins by the
same user. What strategies are people using? Is it worth going to
database session storage just for this?
martin
2010 Sep 15
19
Rails 3 with Mongrel possible?
After much fiddling and googling, it seems to me that Mongrel, even the
1.2.0pre2 release is not compatible with Rails 3 -- is that true?
When I start up a new Rails 3 project (i.e. one fresh after a
`rails new` command), mongrel appears to start (creates a pid file, and
reports no errors on the CLI), but the app does not load in the browser
and I find this in the mongrel.log
2007 Nov 04
6
Missing model error
I am storing a shape object in a session, and somewhere I picked up
that to make sure I can restore the full glory of Shape, I needed
this line in ApplicationController
model :Shape
So, of course, I also have a file /app/models/shape.rb
All was working well, but then I decided I''d rather name the model
MyShape.
So, I
- edited the filename to "my_shape.rb"
- edited
2010 Sep 09
9
Will a Quad-core i5 processor significantly speed up development on Linux or Mac?
I am looking at getting a new Thinkpad with an i5 processor.
I was curious to what extent this would speed up developing a Ruby on
Rails
app. I am guessing that this depends to what extent multi-threading is
utilized,
but I am not sure---hence the question :^)
If it is not that significant, my other choice would be to get a used
Thinkpad
or Mac Pro, duo-core.
So is there a significant
2007 Nov 29
27
Strip & Sanitize BEFORE saving data
So I''ve googled my brains out, and I see a lot of talk about
TextHelper for views, but next to no discussion about cleaning text
_before_ it is saved.
I figured this had to be asked 4 zillion times, but I''m not finding
anything concrete/obvious.
Using h is fine as a safety catch, but that alone is not acceptable
to me as the means of diffusing the impact of HTML or JS
2007 Oct 16
2
Where override model attribute names?
OK, so I get that ActiveRecord determines model attributes through
reflection of the table schema. Handy for many cases, but not mine.
I need to override that and provide my own mapping of attribute names
to column names to use the mapped names throughout the application code.
I''ve been poking around looking for where in AR''s hierarchy I can can
inject this mapping, but
2007 Nov 16
4
Newb - variable returns # sign?
Hi Gurus-
I want to return the variety from the species table based on the
active record link to inventory table
class Species < ActiveRecord::Base
has_many :inventories
end
class Inventory < ActiveRecord::Base
belongs_to :species (this is the singular and the plural, so that''s
OK)
end
My inventory_controller looks like:
def show
@inventory =
2010 Sep 21
6
Iterate HashWithIndifferentAccess
How do I iterate a HashWithIndifferentAccess? I need to set the order
using a sortable_element.
--
Posted via http://www.ruby-forum.com/.
--
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send
2008 May 13
1
Serializing AR Objects
I need to serialize a composite AR model and save it to a database
field.
Reading up on Ruby''s Marshaling, it seems there could be problems
with the version numbering thing of the default dump/load methods.
As I understand it, Ruby internally marks the serialized data with
the current Ruby language version, and when loading that data, if the
major version is changed, the loading
2008 May 17
1
Scope Confusion - Controller iVars in Modules
I''ve created a module to include in a Controller. Basically it works,
but I am expecting methods in the module to have access to instance
variables from the controller, and that appears to not be the case.
Yet, a simple Ruby example says it should be. I''m not sure what''s
different.
Simple Example:
module ShapeStuff
def set_type
@type =
2009 Jul 27
2
Can't delete sqlite database
Did a quick experiment with a new project and added the default sqlite
database with rake db:migrate.
Now I want to get rid of it. I use rake db:drop and that will delete the
file, but as soon as I restart the Rails app, the db is recreated.
Aargh!
I can''t find any other file which has been modified which mighht cause
the db to be created.
How do I get rid of this permanently?
-- gw
2007 Nov 21
1
iText, Rails, and OS X
I have the need to take existing PDFs and populate them with data
entered via HTML forms. Data saved to database, entered in to PDF
file, PDF file with data archived, and then distributed va email and/
or download.
The languuage I previous did all my web work in, Lasso, had this
stuff built in, but it appears not to be so with Ruby or Rails.
The latest info I can find on this is a year