similar to: observe_select ?

Displaying 20 results from an estimated 60000 matches similar to: "observe_select ?"

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 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 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 Mar 21
4
Can RoR''s AJAX helpers do this?
Hi, I want to type text into an input field then on enter, use AJAX to update the value of an input field elsewhere on the screen. ''observe_field'' allows me to watch a form field and dynamically update a DIV. Is there a variation or other method to allow me to update a field instead? -- Posted via http://www.ruby-forum.com/.
2006 Feb 21
2
empty link_to_remote
I am playing around with AJAX pagination, but even a hard-coded <%= link_to_remote(''1'', :update => ''listing'', :url => {:action => ''listing'', :page => 1}) %> produces href="#". Does anybody know why? -- fxn
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 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 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 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
2006 Feb 28
1
support back button
There are a couple of links in the wiki about AJAX and the back button, but seem to be broken. I have a page with AJAXified tables and normal links. When the user modifies some table, follows a normal link, and presses the back button, the shown tables are the original ones (modifications are OK in backend). Is there some standard solution to this? -- 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 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},
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 Jun 01
5
History plugin
Hello, I felt annoyed enough when having to redirect user back to their previous location in a hackish way that I wrote this plugin. It avoids storing POST and Ajax request. It also has a facility to specify actions not to store in the history. If you are interested, it''s there: http://blog.cosinux.org/pages/rails-history See you all, Damien -- Damien MERENNE
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'',
2005 Dec 27
2
actions with no views?
In Depot, the demo application in the the Agile book, actions that modify the model such as add_to_cart redirect to another action that has a clear view role, like index, or show_cart, instead of generating the view themselves. This uses an HTTP redirect that goes to the client and returns. Is this an idiomatic way to design the flow in Rails? -- fxn
2008 Jan 04
1
eager loading and polymorphic associations
There is a dedicated section about eager loading in the docs. A coworker discovered eager loading does not work in polymorphic associations the hard way :-) so I''ve written a patch that documents it: http://dev.rubyonrails.org/ticket/10610 There are at least a couple of tickets that implement something that would change that though: http://dev.rubyonrails.org/ticket/9640
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 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
2006 Feb 19
1
distributing iconv.dll
I would like to distribute Iconv for Windows with my Rails application (developing on a Mac, no experience with dlls). I threw iconv.dll and charset.dll under lib without luck. Where would I need to put them (if this is possible at all)? -- fxn PS: The reported error message is in Spanish but translated reads something like "the specified process was not found: Init_iconv".