similar to: How to capture the last DB insertion id ??

Displaying 20 results from an estimated 1000 matches similar to: "How to capture the last DB insertion id ??"

2006 Mar 03
1
number_to_currency() helper == non DRY == could be improved
Hi all, Apologies in advance if I got this one wrong, I''m still just a newbie ;-) Going through the Apple ADC RoR tutorial it suddenly occurred to me that the ''number_to_currency()'' helper method was not DRY streamlined. Scenario:: The "number_to_currency()" methods options hash works great when I need to dynamically display different currencies when I
2006 Jul 12
7
Failure in comparisons
I''m basically a Ruby noobie. At the moment I''m having a fair bit of trouble trying to figure out what''s going wrong here (partial template): <%= @project = Project.find(@the_id) if current_user.userid == @project.client hidden_field ''messages'', ''recipient'', ''value'' => @project.project_manager
2007 Sep 06
2
Wordpress Javascript Index Loop
I want to use javascript to display the categories that the post is filed under when a icon/image is clicked. The list of categories should expand at the bottom of the post under the icon(s). This works great on the single post page, but the index (main) page lists 10 posts, and it will only work on the first post. No matter what post icon is clicked the first post expands. I think I understand
2006 Sep 26
9
Encrypt URL Params, such as the id
Is there any easy way to encrypt the URL params that is seen in the URL. I dont feel comfortable exposing the id of the models to the external user. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2023 Mar 27
0
ANNOUNCE: [GNC-dev] Repository Branch Changes
Docs: Yes, as it would be confusing to have different branch names in code and doc. Accidental pushes: I'm looking into that. I think I can do that in the post-commit hook. Wiki articles: Thanks for the reminder. Regards, John Ralls > On Mar 26, 2023, at 8:36 PM, David T. via gnucash-devel <gnucash-devel at gnucash.org> wrote: > > Out of idle curiosity (since I'm not
2007 Mar 04
4
Rails functional testing and Mocha
I''ve always wanted to be able to do stuff like this in my functional tests c = customers(:customer_1) c.expects(:great_customer_service) post :service_customer, :id => c.id This of course fails because inside the rails action a different instance of customer is used. Some of the time setting your expectation/stubbing on Customer.any_instance works, but it''s not
2007 Oct 20
3
TextMate bundle in MacroMates repo
Hi Recently I sent a modified version of the GetBundle bundle to textmate-dev. It was failing because the RSpec bundle was from another repo (ie RubyForge). One of the replies said that the RSpec bundle was now in the MacroMates repo, which it is. Is that an officially handled thing? If so, what version of the RSpec bundle is being maintained there - CURRENT? It''s
2007 Oct 30
7
RSpec Texmate Bundle errors
I''ve the same problem as Alastair when running rspec command : http://lists.macromates.com/pipermail/textmate/2007-October/022585.html ../spec/mate/runner.rb:34:in `run'': undefined method `parse'' for Spec::Runner::OptionParser:Class I fixed this for me by changing the offending line to : ::Spec::Runner::CommandLine.run(argv, STDERR, stdout) (see
2007 Nov 26
0
rSpec (rev 2996), Rails (rev 8214): TextMate bundle problems
Hey guys, I''m trying to get rSpec (rev 2996) working with Rails 2 (rev 8214). Running the tests from the command line works, no problem. I installed the RSpec.tmbundle (also rev 2996), and would like to see the HTML test results in TextMate. When I run the "Run examples in selected files/directories" command in TextMate, I get the following dump:
2006 Jul 17
2
after_save deletes is an exception is raised?
Does after_save in a model delete if an exception is raised in there? I simply did def after_save raise ''hmmm'' end and it raised the exception but there was nothing in the database. I removed that entire method and its in the database. Is this correct? Thank You, Ben Johnson E: bjohnson@contuitive.com -------------- next part -------------- An HTML attachment was
2015 Sep 08
2
Public folder subscriptions with Outlook
This is more an Outlook issue than Dovecot, but given that it is connected to Dovecot I figured there would be a good pool of knowledge here that increases the likelihood that somebody knows the answer :) I have a Dovecot server setup with a public folder and keep getting complaints that Outlook users don't see new folders created by other people. In Thunderbird it is simply a case of
2006 Apr 14
0
CentOS-announce Digest, Vol 14, Issue 6
Send CentOS-announce mailing list submissions to centos-announce at centos.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.centos.org/mailman/listinfo/centos-announce or, via email, send a message with subject or body 'help' to centos-announce-request at centos.org You can reach the person managing the list at centos-announce-owner at centos.org When
2007 Oct 15
1
TextMate File Type Detection for RSpec & Rails
For those of you struggling with TextMate not properly detecting rspec files, Allan Odgaard (the author of TextMate) has kindly provided a tutorial on how to set up TextMate to associate all .rb files with rails and all _spec.rb files with rspec. http://macromates.com/blog/2007/file-type-detection-rspec-rails His instructions work great and switching between rspec and rails files has
2006 Jul 06
6
Capistrano deployment questions == Best practice type ones
Hi everyone, I''ve been sold on the whole idea of using Capistrano for deployment of my sites and have successfully deployed three apps in three different environments all with success. As I''m trying to configure my sites I''ve encountered a number of issues/questions hence this post. 1. Database.yml Twice I''ve been stumped by apps refusing to work on
2006 Sep 10
1
validates_format_of :something, :with => /REGEX/
Hi all, I''m hoping to stir the Rails pot a little bit here, so please go easy with me ;-) Regular Expressions is the most densely inhumane language construct ever invented in any ''civilisation'', and the fact that we still have to dirty our minds with this in Rails is something that (sh/c)ould ideally be corrected in Rails (preferably before the release of 1.2
2023 Feb 19
0
ANNOUNCE: Temporary Website URL
As most everyone already knows www.gnucash.org has been offline since 11 February because Linas Vepstas lost internet access and his ISP, Grande Networks in Austin, TX, has not fixed it. To provide replacement service until Linas gets back online we've set up an alternate site, https://code.gnucash.org/website/. Regards, John Ralls
2023 Mar 06
0
ANNOUNCE: GnuCash 4.902 corrected download links
I thoroughly screwed up the links on the announcement email. Here are the correct ones: Microsoft Windows: https://github.com/Gnucash/gnucash/releases/download/4.902/gnucash-4.902.setup.exe https://downloads.sourceforge.net/gnucash/gnucash%20%28unstable%29/4.902/gnucash-4.902.setup.exe Apple macOS: https://github.com/Gnucash/gnucash/releases/download/4.902/Gnucash-Intel-4.902-1.dmg
2006 Apr 13
0
CEBA-2006:0413-001 CentOS 4 x86_64 drbd - bugfix update (EXTRAS Only)
CEBA-2006:0413-001 CentOS 4 x86_64 drbd - bugfix update (EXTRAS Only) This is a drbd bugfix update. The following are the fixes from the previous version: 0.7.17 (api:77/proto:74) ----- * There was a bug that could cause the activity log to be not applied after a primary crash, when an other size than 127 elements was configured. * There was a bug in the activity log code, that could
2005 Oct 10
0
[BUG ??] 'uses_component_template_root' problems with implementation in component
Hi all, I hope this will reach those that can help or change things, IF it is a bug/''feature'' issue. At least it seems like it to a newbie like me. BACKGROUND:: I have a basic html file in [ /app/views/layouts/application.rhtml ] that contains this <html> <%= render ''shared/header'' %> </html I then have a component [
2009 Jun 03
1
Markdown plugin produces hash instead of content
I love Markdown. But occasionally I run into this rendering bug which is very frustrating. I recently found it when using Markdown to format the latest version of the [mt:Entries docs][1] ([Markdown version][2] mentioned in [Case 79762][3]) As posted as a comment on the [Movable Type Markdown plugin page](http://plugins.movabletype.org/markdown/index.html )... --- **Bug report in Markdown