Displaying 20 results from an estimated 2000 matches similar to: "Feature: make capitalization optional in *humanize*"
2006 May 24
7
migrations and SQLite
I read in the instructions of Tracks that "upgrading via the rake
migrate command is quite a bit more tricky currently with SQLite and
SQLite3". Is there any gotcha regarding migrations and SQLite3?
-- fxn
2006 Feb 04
22
What''s the best way to embed a form?
I would like to embed my login form on my app''s home page. What''s the best way to render the login action of member controller from another action?
Thanks
Frank
---------------------------------
Relax. Yahoo! Mail virus scanning helps detect nasty viruses!
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Feb 19
4
is "display" a reserved name of some sort?
A view display.rhtml sees no controller state variables set in the
corresponding display action. Why?
-- fxn
2006 Mar 19
4
elemental race conditions question
What''s the standard way to prevent race conditions in controllers?
Say user has many posts.
Post controller has action add_post that receives user id, post
controller find()s the user and while he is creating the post entry
an administrator deletes that user in a separate session. We cannot
assume the database checks foreign key integrity. How do you get that
right?
-- fxn
2006 Apr 05
5
when is model() needed?
I have just some vague and thus probably wrong ideas about when to
use model() in controllers, and by now I err on being redundant. I
don''t post them here to avoid leaving anything that may be false in
the archives.
Can anyone explain exactly in which cases one should use model()?
-- fxn
2006 Mar 04
5
SQlite3 hoopup issues on mac os x
friends of the int-arweb.
what does this mean:
(in bold) ActiveRecord::StatementInvalid in Contact#create
SQLite3::SQLException: SQL logic error or missing database: INSERT
INTO contacts
Context:
this happened after I had finished setting up RoR as per the tutorial
at http://maczealots.com/tutorials/ruby-on-rails/
the database, is like, there. is there a nice ruby command like deal
to
2006 Feb 07
3
help with relationship
Let''s imagine we are modelling a company that have several shops. I
have a Worker model and a Shop model. A worker belongs_to a shop, and
each shop has_many workers. But, in a shop there''s a distinguished
worker that is the supervisor
create table shops (
...
worker_id integer -- the supervisor
);
How would you express this relationship?
2006 Dec 07
17
compress and max upload size?
I am using mongrel_cluster with mod_proxy_balancer and would like to
enable compression (assuming it improves throughtput) and limit file
size upload. I configured mod_deflate and LimitRequestSize in Apache,
but in my trials looks like the proxied calls bypass those directives
(the conf goes below).
Is there a way to get this?
-- fxn
# Adapt this .example locally, as usual.
#
# To be
2006 Jul 17
18
Inserting datetime value into SQL Server
I have a SQL Server column named StartTime of (SQL Server) type datetime
If I attempt to set the attribute using
public
def StartTime=(time)
write_attribute(:StartTime, "{ts ''1899-12-30
#{time.hour}:#{time.min}:#{time.sec}''}")
end
it''s inserting a NULL value.
Anyone else able to successfully insert a date time value into a SQL
Server table using
2006 May 15
11
can you explain this benchmark?
I want to load about 14000 words (a subset of /usr/share/dict/words)
into a MySQL table in a migration:
class CreateWords < ActiveRecord::Migration
def self.up
create_table :words, :force => true do |t|
t.column :word, :string
end
say_with_time ''loading words...'' do
words = File.join(RAILS_ROOT, ''db'',
2006 Feb 11
5
after_(read|find) callback?
I am pondering the possibility of encrypting/decrypting some fields
in a SQLite backend on-the-fly.
The point of the message is not security, I know that''s broken, but
whether there''s a technique that provides on-the-fly save/read
filters. Of course the solution would need to work transparently in
joins, so
user.posts.last.title
would do the right thing if title
2006 Mar 04
13
Using helpers from controllers ?
There is a solution to use helpers from controllers ?
I have an error :
|undefined method `content_tag''|
class ApplicationController < ActionController::Base
def test
return content_tag("a","test")
end
end
2006 Apr 10
4
has render_component changed?
I have an application that worked fine, but after the recent updates
has broken in some calls to render_component from views. I might be
missing something but as far as I remember Rails updates is the only
thing I''ve done in between. See the log:
*** START LOG SNIPPET
Start rendering component ({:params=>
{:center_id=>10, :id=>25},
2005 Jul 28
0
Humanize
Hey guys,
What do you guys suggest would be the best way to override the humanize
method from Inflector Module?
I was thinking in creating a hash lookup table, so it would be checked
before applying the default rules. This way field names could have better
translations.
Thanx,
Alessandro
_______________________________________________
Rails mailing list
2010 Jul 11
10
dependent support for has_many through?
Given the following
class Programmer < ActiveRecord::Base
has_many :assignments
has_many :projects, :through => :assignments
end
if I call Programmer#projects.clear, it will delete_all the joining
assignments; however, I have a situation where I''d like the
assignments to get destroyed instead so that their after_destroy
callbacks get called. It would be simple to
2006 Apr 19
9
translating RoR framework into the Java environment
For a company study I am trying to come up with what would one need
to replicate *grosso modo and at the functional level* what we get in
Rails. This does not need to be an "equivalent" solution, just what a
Java programmer would build upon, the canonical aggregation of
components, the usual tools.
My first fraft is:
Struts -> C layer
Hibernate -> M
2007 Dec 07
4
capitalizing an attribute - view, controller, or model?
The users will enter students names on forms. How do I intercept the
first and last names and have them stored capitalized when the user
inputs them in lower case?
Do I mess with the form html, skipping form_for helpers and using
conditional clauses in the view?
Do I need to separate out the individual attribute and update it
separately in the controller actions that save/updates the
2010 Jul 24
23
How to disable ORM in Rails 3
Is there any way to prevent Rails 3 from using an ORM? In Rails 2, it
used to have a description in environments.rb explaining how to do that.
In Rails 3, is there any way to tell it to not use any database? I was
trying to make some benchmarks from situations that don''t require a
database...
Thanks in advance,
Rodrigo.
--
You received this message because you are subscribed to
2011 Jun 25
3
Unicorn and streaming in Rails 3.1
Streaming works with Unicorn + Apache. Both with and without deflating.
My understanding is that Unicorn + Apache is not a good combination
though because Apache does not buffer, and thus Unicorn has no fast
client in front. (I don''t know which is the ultimate technical reason
Unicorn puts such an emphasis on fast clients, but will do some
research about it.)
I have seen in
2006 Feb 15
1
where to set $KCODE
My application uses only UTF-8. Which is the canonical place to do
something global like setting $KCODE?
-- fxn