similar to: Time ago in words -- how to use in controller or model?

Displaying 20 results from an estimated 200000 matches similar to: "Time ago in words -- how to use in controller or model?"

2006 Jul 02
1
Model postal mail addresses (internationally)?
What''s the best way to model postal mail addresses when the app is going to be used internationally? Jeremy Cowgar
2006 Jun 02
3
Use a Model or Controller?
I am putting up a tool that connects to a subversion repository and checks latest revision and downloads the changeset log for all the changes made since last check and puts inside a hash for various uses inside the code. I am just wondering if the code that checks the subversion repo and reads it''s data should bolong to a controller of it''s own or a model of it''s own.
2006 Jul 07
4
Controllers - model vs. use case centric
I am working on a reasonably large application (which happens to be my first with rails). I was hoping to get some input on organisation of controllers and actions. I am finding having used scaffolding more at the beginning my controllers tend to be very model centric, in that they mostly contain all the actions for management of that particular model, which may crash across multiple use
2006 Jul 20
3
AJAX Form, :postion => :bottom but replace when error?
I have a form below a table to add new notes to an item. If the note does not have a title or body, the note is not saved and a form error is displayed. However, if the note validates successfully, then the note is added to the bottom of the table above. Just for reference, the table id is "note_list" and the add form div is id="note_add_form". So, my problem/question
2008 Oct 14
2
best-practice for programmatically using rxml generated from controller/view? (or 'how can I view a view from a model')
Hey Guys, Here''s the scenario: I''ve got vendor-specific XML I need to create and then POST it somewhere. It sounds easy enough, but I''m running into issues when it comes time to actually use the XML. Trying hard to stay within the MVC pattern I: 1) Create a controller which loads the models I''m about to turn into XML 2) Create an rxml view which renders the
2006 Jun 14
2
Date as INPUT not Selects
Greetings! Can anyone tell me how to use just a normal input field as a date entry? I can use a text_field tag, but that brings the date out in CCYY-MM-DD format. I would like to be able to simply key in my dates like mm/dd/ccyy format. Thanks, Jeremy
2005 Sep 02
0
Semi-OT: An idea for New Orleans temporary communications infrastructure
The national guard and/or army routinely implements VoIP over wireless in situations where comm is lost, I did see an news release that the Guard started this project in the south the day after the disaster hit. The key is not the VoIP infrastructure, that is the easy part (one ss7 Sonus softswitch and a DS3!), the key is distributing IP over a wide area, which is best done on the quick with WiFI
2006 Jun 27
1
Utility App using rails models
I have a few maintenance programs that run periodically via cron. I learned how to use rails model files in those apps w/o much problem. However, the problem came about when one of my models, then many of my models began using plugins. Now I find that with each new plugin I use in my models, I have to go back to each of my utility apps and specifically require that plugin in order for
2006 Jul 31
1
How do I call a controller from a model, console, or outside of rails?
Hi, I''m writing yet another cms and I need to capture the html output of a rendered template including helpers, etc from within my rails app. I plan to use backgroundrb, and I need to be able to capture the output of "pages.browse()" where pages is my controller. I need to pass in the id param. How can I do this besides using Net::HTTP? Using Net::HTTP hangs when
2002 Oct 24
1
Samba PDC and XP Pro Problem. (Not signorseal - fixed that one some time ago)
Hi, This is a simple query and may well have been answered in the mailing list archives but my searching can't find an answer to my specific problem. My PDC is Samba 2.2.3 on Redhat 7.3, clients are a mix of Win 2k and XP Pro laptops. The Win 2k laptops work fine (all service packs applied) and allow any domain user to log on to any of the 2k laptops. However the XP laptops if I try logging
2006 Jul 21
4
Printed/PDF Reports (Text/Tabular/Summary) in Rails
The recent discussion about different graphing solutions made me think. What is everyone using for general reports? Currently I have a web based application at work that has roughly 20 different reports ranging from simple tabular data with totaling at the bottom to pretty, colorized, graphic logo''s,etc... going to clients, and finally complex ones I hate to think about such as
2014 Oct 18
1
Office Words 2013 Crash from time to time
Dear All, I've been upgrade from 3.6.x to 4.1.x (Member server) All Win 7 Pro 64. While in 3.6.x there is no such report on the issue,just people complain about the slowness While in 4.1.x there are random report on this issue not everyone but more to a particular person... That seem to be happening from 4.1.6, 4.1.11 and 4.1.12 And I've really no idea why or how. Any suggestion to
2006 Aug 19
1
Re: DB Auditing
On Saturday 19 August 2006 11:25, Jeremy Cowgar wrote: > A recent thread titled "DB record versioning/audit" made me post this > message: > > I''ve created a plugin called "acts_as_logged". There already is acts_as_audited. Michael -- Michael Schuerig mailto:michael@schuerig.de http://www.schuerig.de/michael/
2005 Nov 22
1
model and controller namespace/structure
Hi all - I have a large project that has about 100 tables in the database that we want to test porting to Rails. My main issue right now is that although I can tell rails to do something like: generate model Review::UserReview and generate controller Review::UserReview and rails will write out the correct directory packaging, all my unit tests break because of their dependency on loading
2006 Mar 30
25
TextMate for Rails development -- why?
Greetings, I am curious, I see quite a few references to using TextMate for rails development. I downloaded TextMate and used it for 30 days. I do not see what everyone is raving about. Snipplets are nice, but other editors do the same thing, some with much more power. Can anyone tell me what makes people draw to TextMate? Maybe I am missing the whole reason, I''d really like to
2006 Feb 09
1
How to use url_escape in controller?
I know one can use <%=u "a string" %> to use the url_escape function in ROR and convert "a string" to "a%20string" I tried using url_escape and u in my controller but none of them work and I get a function unknown error. Can anyone please guide me as to how I can use the url escape function in my controller? I appreciate your help Thanks
2010 Oct 13
1
overlaying multiple contour plots
Dear All, I have 4 or 5 contour plots that I need to overlay. Currently they are maps showing hot and cold areas for specific elements. I would like to combine these plots into one map, where each color will correspond to a different element and you would be able to see the areas that each element occupies on this map. Is there a way to do this in 'R'? I am fairly new to this software, so
2020 Apr 10
0
Prevent `wbinfo -u` from making Winbind unresponsive
On Fri, Apr 10, 2020 at 02:41:39PM -0700, Jeremy Allison wrote: > On Fri, Apr 10, 2020 at 02:37:45PM -0700, Jeremy Allison via samba wrote: > > On Fri, Apr 03, 2020 at 03:26:42PM -0700, Alexey A Nikitin via samba wrote: > > > no longer a threat, but it is pretty much ignored if 'winbind offline logon' is enabled... > > > Can anyone explain why? Because when auth
2006 Dec 15
1
How can I have two controllers use the same 'category' model if they aren't related?
Hi all, I have two controllers - "foods" and "receipes" which map to models. Each one will have multiple categories, but the categories are completely different for each one - they don''t share the same category. So they aren''t related at all. If I wanted to do this using resources, what is the best way to set this up? If I setup a categories controller and
2006 Mar 28
5
combining two models in one controller/view "set"
I''m going to take another stab at this question (my first one received no replies): I have two models: Author has_many: books Book has_one: author I have two tables: authors id ... books id author_id ... I let the scaffolding fly and it created the CRUD goodness for each model, as expected. However, I want to have only one view/controller "set" for both models; when I