similar to: Rails Plugins: Why to register your own functionality with send()?

Displaying 20 results from an estimated 1000 matches similar to: "Rails Plugins: Why to register your own functionality with send()?"

2006 May 25
4
Does TMail support Nested Multipart Messages? (Repost)
Hi, does anybody know if TMail supports nested multipart messages? I read a changelog that indicates so (http://dev.rubyonrails.org/svn/rails/trunk/actionmailer/CHANGELOG), but I haven''t been able to get it working so far. Maybe I am doing something wrong here? I attached the sample mail. Here is the code to parse it: require File.dirname(__FILE__) +
2006 Feb 11
16
Why does''nt rails pick up more metadata from a mysql schema?
Hi, when I define a db column to be non-nullable or of length 20 or as numeric, I would expect rails to validate that, but that doesn''t seem to be the case. Any idea why that is? The metadata is accessible, at least in the mysql case. I am using rails 1.0 with mysql 5. Cheers, Mariano
2005 Dec 15
5
Rails vs. J2EE: Sharing state in memory?
Hi, I am from a Java background and pretty new to Ruby and Rails. What I am wondering is how I would shared state accross requests and users without involving IO, i.e. use memory. My current understanding is that for each request a new process ist spawn and therefore it gets its own memory. So no sharing can take place between requests? Do I understand this right? For those who know
2006 Mar 25
2
Rails Plugins: How to copy artefacts to the public directory during install? When is install.rb executed anyway?
Hi, I want to write a plugin that uses JavaScript and I am wondering how to put the static content, i.e. the JavaScript, in place? I read the documentation I found ( http://wiki.rubyonrails.org/rails/pages/Plugins and links) and looked at the listed plugins. One thing I found was that subversion seems to be a prerequisite for providing or even installing plugins. Is that right? The other thing
2006 May 18
2
How to debug the rendering in Rails?
Hi, I have some controller code like this: def mailing_lists @ml = MailingList.find_by_identifier(@params[:id]) @messages = @ml.messages @headers["Content-Type"] = "application/atom+xml" @response.headers[''Last-Modified''] = @messages.last.created_on.httpdateunless @ messages.empty? minTime =
2006 Mar 18
1
Need help .. Rails Recipes, in_place_editor, selecting associations
Hi, I am currently reading the Rails Recipes book and like the chapter on providing your own in_place_editor for enumerations / selects. I understood so far, or I believe that I understood ;-), how to do that for a field that uses values only, like choosing from "red", "black", "green". What I fail to understand is how to chose from associated objects?!
2006 May 19
2
Problem with joins and overlapping field names
Hi, I have the following code: @conversation_pages, @conversations = paginate(:conversations, :per_page => 20, :joins => ''LEFT JOIN messages on messages.conversation_id = conversations.id ''+ ''LEFT JOIN email_addresses on
2006 Mar 18
24
rails is extremely hard to install
I''m on Mac OSX and I''m about to rip my hair out over how hard it is to install rails. I''ve installed rubygems and am typing "ruby setup.rb" in the command line and get "No such file or directory." I''ve never had to use command lines before so this is alien to me. Can''t they just make installation GUI-based for non-geeks like
2008 Mar 19
3
ApplicationHelper
When working with views, I use instance methods of ApplicationHelper: # app/helpers/application_helper.rb: module ApplicationHelper def distribute(total, min, cutof, list) [1,2,3] end end # app/views/planner/_mta_colors.rhtml: <td> <% ... dist = distribute(total_v_px, 4, 0, colors.collect{|color| color[1]}) ... %> So to test the distribute method in ApplicationHelper, I have
2006 Apr 04
7
odd error
Hello everybody. I have just started trying rails, got instant rails and radrails... Made a new project, and when I tried to create a model I get the following error: Project> ruby script/generate model user -h -e:3:in `load'': no such file to load -- script/generate (LoadError) from -e:3 I?m sure this is a newbie question, I?ve searched the documentation and
2006 Jan 12
1
Best Forum? Was: Migration doesn''t seem to preserve create_table options in schema
Hi, is this the best forum to answer this question? Is there any better source for information or another mailinglist to address this question to? Cheers, Mariano ---------- Forwarded message ---------- From: Mariano Kamp <mariano.kamp@gmail.com> Date: Jan 8, 2006 6:24 PM Subject: Migration doesn''t seem to preserve create_table options in schema To: rails@lists.rubyonrails.org
2012 Apr 28
2
"Modified Diebold-Mariano Test" with forecast package
Hi I tried to calculate modified Diebold-Mariano Test in R . I have already find a "forecast" package to calculate the Diebold-Mariano Test. Please let me know how to obtain " Modified Diebold-Mariano Test" ? Regards, Serdar -- View this message in context: http://r.789695.n4.nabble.com/Modified-Diebold-Mariano-Test-with-forecast-package-tp4594648p4594648.html Sent from
2011 Apr 08
5
How to extend a helper using plugin?
Hello, I''m facing this problem while trying to extend the parse_redmine_links helper method in Redmine-1.1.0 (Rails-2.3.5) from my plugin. My idea is to use alias_method_chain so the extended version could call the original version and adjust the result to it''s liking. Anything I''ve tried so far exposes this behavior: the first render of a page uses the extended
2009 Apr 12
4
Can't get an Array function to be visible inside ApplicationHelper
Folks, I seem to be missing something basic here. I am trying to call a function from my application layout that will return me a hash of the roles for the user currently signed in. Here is the simplified code I have in ApplicationHelper module class Array def to_h Hash[*enum_with_index.to_a.flatten] end end def get_cur_user_roles ["school_admin",
2018 Dec 05
4
Where's the optimiser gone? (part 5.a): missed tail calls, and more...
On Tue, Dec 4, 2018 at 3:58 PM Daniel Sanders via llvm-dev < llvm-dev at lists.llvm.org> wrote: > On Dec 4, 2018, at 15:11, Stefan Kanthak <stefan.kanthak at nexgo.de> wrote: > No, I understand his intent. I just doesn't align with my intent, > including the hoops he/LLVM wants me to jump through. > > He's not saying they're your bugs, he's just saying
2006 Jul 07
6
get_service_ticket: kerberos_kinit_password ULISES$@SYSTEMMASTER.COM.AR@SYSTEMMASTER.COM.AR failed: Preauthentication failed
Hello from Buenos Aires. I am getting the following error when I do the net ads join command: get_service_ticket: kerberos_kinit_password ULISES$@SYSTEMMASTER.COM.AR@SYSTEMMASTER.COM.AR failed: Preauthentication failed I am running Debian, kernel 2.4.18 (geez, I should upgrade). I searched everywhere for this error but I can?t find any solution. Wbinfo -u works fine. kinit
2006 Feb 12
7
form_remote_upload plugin
form_remote_tag does not support the input type=file. This is due to javascript security limitations. I created a plugin that modifies form_remote_tag so that if you pass it the option: :html => {:multipart => true}, it will submit via an iframe, allowing you to upload files. It works nicely with file_column :). Currently, it only works with RJS templates (no :update option), and I only
2006 Nov 24
2
Diebold Mariano Test
Dear List Has anyone used R to distnguish between alternative forecasting models? In particular is the Diebold Mariano test available for use within R. Any assistance would be greatly appreciated. Graham Leask Lecturer in Strategy Economics & Strategy Group Aston University Aston Triangle Birmingham B4 7ET Tel: 0121 204 3150 E Mail: g.leask at aston.ac.uk
2006 May 13
10
new user
Hi!!!! I''ve tried ROR! it''s fantastic!!! wonderful!!! I WANT LEARN ALL ABOUT IT!!! Do you have some links ( if exists in italian language ), or suggest me some book i can buy?? thx very much -- /\/\ariano Di Felice Java PHP Python programmer with MySQL, PostgreSql, SQLite and Oracle support Linux Platform Developer mariano.difelice@gmail.com Tel. 0735 703735 Cell +39 339
2018 Dec 03
4
Where's the optimiser gone? (part 5.a): missed tail calls, and more...
"Tim Northover" <t.p.northover at gmail.com> wrote: > Hi, > > On Sat, 1 Dec 2018 at 17:37, Stefan Kanthak via llvm-dev > <llvm-dev at lists.llvm.org> wrote: >> Compile the following functions with "-O3 -target amd64" > > You've been advised before, but you really need to start reporting > these as bugs[*] if you actually care about