Displaying 20 results from an estimated 6000 matches similar to: "Importing Legacy Data"
2006 Aug 14
3
case insensitive exclusion_of
I have the following validation code, however it will allow variations
in case. Like ''Admin'' and ''admiN'', etc
validates_exclusion_of :login, :in => %w( admin ),
:message => "is reserved for system accounts"
how can I make this validation case insensitive?
--
Posted via http://www.ruby-forum.com/.
2006 Jun 16
2
image_select_tag with name and value
What have I missed
I have a .rhtml with the sandard form parameters
<%= image_submit_tag("excel.gif", :alt => "Download List to Excel",
:border => 0, :name => ''render_action'', :value => ''excel'' ) %>
Which genenerates I believe a valid html fragment for a submit button.
<input alt="Download List to Excel"
2007 Sep 25
13
Session cookies not passed on first redirect
Hello Campers!
Is it just me or does Camping init the session twice on a redirect?
If I have an app and when the user visits it for the first time, a
session is generated. Afterwards I redirect the user in a service
(that basically does auth) and he gets bounced to the login page -
but when I arrive at the login page my SID somehow has changed :-( so
there is a stale session dangling
2006 Apr 27
6
OrderedHash
Looks like I have skipped on this, but still - a couple of questions:
1) Why there suddenly is an OrderedHash in ActiveSupport? (this
glaring omission from ruby core is present in many apps already)
2) Why it doesn''t match the semantics of Hash respectively?
3) Why it''s #nodoc ?
--
Julian ''Julik'' Tarkhanov
please send all personal mail to
me at julik.nl
2006 May 18
3
Two-Dimensional Hashes through links?
I''m really hitting a wall here. My program has a search engine, returns
a list of results. I am using a two-dimensional hash to pass the form
data back to my controller. (i.e. params[:job] => {:description =>
"xxx", :location => "xxx", company => "xxx"}) I use that Job object to
search my database, and then wait for user input.
Now when the
2006 May 31
4
Sending files through send_file or by httpd?
If I were to serve files, would send_file via rails be slow?
I think they will be 200mb avi files.
Would it be better to send them via /public ?
But I would like to track the clicks on each file - which makes me think
that I can''t serve them out on /public as those clicks will not go
through my application.
Any help or suggestions?
--
Posted via http://www.ruby-forum.com/.
2007 Sep 25
16
putting away HashWithIndifferentAccess
Hey, campineros. And many good handshakes to zimbatm for getting
some patches applied.
So, yeah, I''d really like to get rid of any serious dependancies with
this 1.6 release. Anything that''s not in stdlib has to go. Of course,
camping-omnibus will still assume the whole ActiveRecord, Markaby,
Mongrel setup that''s in the history books.
Metaid can be removed and
2006 Jun 04
3
Absolutize URLs in a string
I wonder - do we have some helper/processor/gem to automatically
convert all URLs in a passed string to their canonical equivalent -
i.e. with the protocol, host and such prepended based on the Rails
environment. Super-duper infty for RSS feeds (I hate their
requirement for canonical URLs everywhere).
--
Julian ''Julik'' Tarkhanov
please send all personal mail to
me at
2006 Jun 26
3
Scriptaculous Sortable Element Issue
I have a <ul> that contains a number of list items, and I''m using the
sortable_element helper to reorder then via drag-and-drop. This works
great, however, when I insert a new <li> into the <ul> with Ajax, the
sortable_element doesn''t know about it. Is there a way to refresh this
collection?
Thanks for any help.
--
Posted via http://www.ruby-forum.com/.
2009 Mar 29
5
Rack::Lint::LintError with latest camping and rack
I''m trying to use Camping from Magnus'' repo (1.9.300) but running the
blog.rb example (or anything for that matter) gives me
Rack::Lint::LintError at /
Content-Length header was 0, but should be 548
Ruby C:/ruby-1.8.7/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/lint.rb:
in assert, line 16
Web GET localhost/
There are no errors on the camping output so I suspect something has
2007 Oct 02
19
Per-Request View Paths
I haven''t had a chance to work on fixing multiple controller view paths
recently. My original patch attempt was:
http://dev.rubyonrails.org/ticket/8582
It was rejected due to the fact that it was fixing the symptom more than the
problem.
However, I think it''s critical that this problem get fixed, otherwise the
whole concept of view_paths is severely neutered and
2005 Apr 26
10
Cannot force WeBRICK into submission (UTF-8)
Hello everyone!
Pushing my new rails project I stumbled upon some weird problem.
I cannot force WeBRICK to show me my MySQL records in UTF-8. All I
recieve into the object (instead of russian letters) are question marks
(a la ?????? style). I am running MySQL 4.1 (the one with switchable
charsets) and a binary Ruby extension for it, all on OSX.
To me it looks like MySQL never recieves what I
2006 Aug 07
3
character encoding in RoR
Hi, I''m a newcomer to Ruby and to Rails, and am having a problem with
character encoding.
Now, I know ruby doesn''t handle unicode...but, characters like ? (eacute)
and ? (ccedil) are part of the iso-8859-1 charset, so it shouldn''t be a
problem, right?
But, for some reason, the string functions still seem to hang on those
characters.
As an example, in a brand new rails
2006 Jun 28
2
simply_restful plugin tests failing???
Has anyone successfully ran the simply_restful tests? Here is how I''m
running the tests and the first error. I''m I missing something here?
>rails test
>cd test
>rake rails:freeze:edge
>./script/plugin install simply_restful
>ruby vendor/plugins/simply_restful/test/routing_test.rb
Loaded suite vendor/plugins/simply_restful/test/routing_test
Started
FFFFF
2006 Jun 16
5
[slightly OT] Problem with subversion 1.3.1 on OSX Tiger
I have a subversion repo on a Debian Sarge server. I do rails
development on two Debian workstations (home, work) and also a
MacBookPro.
I installed subversion from Darwinports. Things worked ok for a while
and I did commits from and updates to all three machines until today.
When I did svn status I noticed a lock on the working dir.
$ svn status
? Rakefile
? readme
! L .
.... etc
I cannot
2006 Jun 28
2
webcal url
Hi
I''d like to create a webcal link to share a calendar with iCal like
it''s done in Basecamp for example.
I know how to create the file using icalendar ruby library and iCal
can open it, but if I send this file using an url like webcal://
localhost:3000/ical/1151495837
iCal says that data are not valid.
Any ideas?
Thanks.
PS here is my rb code
def ical_data
cal
2006 Jun 04
8
Remove item from session
Hi there,
when i do this:
session[:myItem] = ''foo''
session[:myItem] = nil
the item :myItem is removed from the session.
But this:
session[''myItem''] = ''foo''
session[''myItem''] = nil
doesn''t remove ''myItem'', it''s empty but still in the session.
Any suggestion ?
Thanks in advance.
mic
2006 Aug 23
11
i18n friendly, plugable Rails Core
In my work with a simple localization plugin, i''m running into a lot of
places in the Rails core, where text and other localization specific
information is hardcoded.
I''ve included some examples in the bottom of this post.
It''s hard for an outsider to know, if the hardcoded values are a result
of inconsistency in code, or "by design". I hope that we can have
2006 Jun 25
7
Unicode HOWTO?
I am disappointed about the (seeming) lack of Unicode support in Rails.
Is there a howto about working the most important limitations? For
example, figuring out the length of an entered word: "???".length() will
return 6, not 3. So if there is a maximum number of characters a user is
allowed to enter, this won''t work as it should -- it treats strings as
byte arrays instead
2005 Dec 16
6
active record outside of rails
I really like how Active Record logs the SQL that is executed inside of
rails. Is there a way to get the SQL output when using Active Record
outside of rails?
Thanks,
phil
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails