similar to: Adding see_other method to ActionController

Displaying 20 results from an estimated 20000 matches similar to: "Adding see_other method to ActionController"

2007 Jul 27
2
Specifying format in ActiveResource
Hi all, I have a need for making ActiveResource have the ability to specify the format much like you can specify the site. So, right now (unless I am not understanding the code, which could be, since I am a Rails and Ruby newbie), all calls end up at http://something/call.xml. I want to be able to call http://something/call.rss or .vcf, etc. This is stemming from the Highrise api in 37
2007 May 17
4
Namespaced model valid #to_xml support in ActiveRecord, ActiveSupport and ActiveResource
Hi, Attached are links to two patches I submitted via the RoR Trac system a week or so ago: http://dev.rubyonrails.org/ticket/8305 http://dev.rubyonrails.org/ticket/8308 I refrained from creating a new Trac ticket for ARes, which will be affected if both of these patches are accepted by Core. There are a couple of workarounds for this issue, but it would be nice for AR, AS and ARes to output
2005 Aug 09
3
Adding created_by and updated_by trouble
Hi everyone. This is a real noob question that I''m hoping someone out there can help me with. I have followed the tutorial How to Ad created_by and updated_b<http://wiki.rubyonrails.com/rails/show/Howto%20Add%20created_by%20and%20updated_by>y and it works ok for retrieving the data. I''m using the Login_Generator. I cannot get it to work on create or update. I think
2009 Jan 28
4
format.html and redirect_to
I was wondering what the purpose of wrapping a redirect_to in a format.html block is. I get why you''d want to do this with a render, but if you''re redirecting the browser to another URL, what''s the point? As I understand it, when redirect_to is called, Rails sends a 302 back to the browser, so I''m having trouble understanding why format plays any part in this.
2006 Apr 22
3
How to use Rails and REST
Hi, I just wrote an article on how to easily create a REST API for Ruby on Rails applications: http://www.xml.com/pub/a/2006/04/19/rest-on-rails.html It describes how to create everything from the ground up and includes information on testing your API too. -- Thanks, Dan Kubb
2011 Feb 09
2
CSRF Protection Bypass in Ruby on Rails - I don't get it ...
Hi all, My team and I are finding ourselves a little in the dark about the "CSRF Protection Bypass in Ruby on Rails" vulnerability that was announced yesterday - http://weblog.rubyonrails.org/2011/2/8/csrf-protection-bypass-in-ruby-on-rails 1. Where is the complete Advisory? The Impact section is very unclear. Looking at the comment in the 2.3 patch mentions "Flash animations and
2005 May 06
17
FYI: watch out for google's web accelerator - can empty your app of data
Hi All, A co-worker passed this info on to me: http://37signals.com/svn/archives2/google_web_accelerator_hey_not_so_fast_an_alert_for_web_app_designers.php The Skinny: Google has a "Web Accelerator" that pre-caches pages by following url''s. If you have any plain/simple URL''s that don''t take paramaters (like what often happens in rails apps), it will try to
2005 Jan 07
7
Channel Variable
Hi all, Does anyone know how to get the channel ID on the other side of the call? For example: When SIP/50 calls SIP/21, and the call is answered by SIP/21 I get: SIP/21-6735 answered SIP/50-b456 ${CHANNEL} will show me SIP/50-b456. Is there a parameter or a workaround to get the SIP/21-6735 part? Thanks. Assaf Benharoosh -------------- next part -------------- An HTML attachment was
2006 Jul 28
2
s/IF_UNMODIFIED_SINCE/IF_MODIFIED_SINCE/ ???
I''ve noticed in the source code that Mongrel handles the IF_UNMODIFIED_SINCE header. I thought this rather odd, since IF_UNMODIFIED_SINCE is generally only useful with PUT. Even more odd is that there is no mention of IF_MODIFIED_SINCE in Mongrel which is useful with GET (although not as useful as IF_NONE_MATCH of course). Is this a bug in Mongrel? -Tim
2011 Sep 09
3
Missing Content-Length header breaks ActiveResource 3.1 on create
Hi, I''ve recently moved a 3.0 app ta 3.1 and am finding that ActiveResource breaks after a successful post because we now check for the presence of the Content-Length header[1] after a successful create (basically whenever the API returns a 201). The API is also on 3.1, and this only happens on staging/pre-prod/prod. I''m still investigating, but one thing that is clear is that
2007 Oct 03
2
rails:freeze:edge task is broken [updating to 2.0]
On 10/3/07, Glenn Rempe <glenn.rempe@gmail.com> wrote: > > > You may want to also take a look at this bug report that I filed. I > had the same problem and running the ''rake rails:freeze:edge > TAG=rel_2-0-0_PR'' TWO times resolved the issue for me when upgrading a > 1.2.3 app. Explanation in the bug report. > >
2007 Nov 20
29
Don't make cookie-stored sessions a default
Hi! Before Rails 2.0 is coming, I suggest not to make CookieStore the default session storage. It stores clear-text values on the client-side and the integrity check hash can be brute-force attacked. I understand that this has been set due to speed advantages, but I believe it''s better to make better security a default. I''ve written a blog post about this
2008 Sep 01
3
basics questions on rails
Hello, I started to use rails few weeks ago, and I have got basic question about it. 1. There is a way to keep my form filled, after submit it (for example if I get errors) ? 2. I would like to create a ''tree'' with my datas like ''pages'' for example : a page has one children and belongs to a page. I added has_one and belongs_to to the model but it
2007 Jun 27
5
Filter Ordering in Edge Rails (Rev 7143)
Filter chaining appears to behave in differently than Rails 1.2.x. It seems that I''m getting a lot of errors along the lines of: ActionController::ActionControllerError: filter #<ActionController::Filters::ClassMethods::BeforeFilterProxy:0x322f468 @filter=#<ActionController::Filters::ClassMethods::SymbolFilter: 0x322f4b8 @filter=:login_required>> was in the wrong place!
2010 Sep 04
6
Solidworks 2009 on Linux Mint 9
Hi all I us Linux for some two years now, most of the time i us ubuntu ultimate edition. since version 1.2 of wine I could also run Solidworks 2009. The installation was made by the instruction on the AppDB: http://appdb.winehq.org/objectManager.php?sClass=version&iId=18101 Now I an trying to us Linux Mint 9 ( ubuntu 9.10 ) I installed wine 1.2 and tried to install Solidworks like I
2008 Jan 21
8
Polymorphic URL helpers documentation and fixes
Yesterday I answered a question regarding polymorphic URL helpers on Core ML and noticed that the module has no documentation. I''ve documented it and rewritten unit tests using Mocha. I also optimized some of the code slightly (nothing major, though). The patch also includes two fixes by Geoff Buesing, who has done awesome work in this area in the past.
2005 Jul 06
6
DoubleRenderError exception
The DoubleRenderError exception recently introduced is forcing me to go back and rewrite my apps authentication handler. Before I could do a redirect right in the middle of a request. Whatever was happening after that went unnoticed, I assumed it was simply ending the request after the redirect was called, but apparently it was going on and rendering the page. Why can''t a redirect
2007 Apr 08
8
SQLite3 build is broken because calling rollback!() doesn't prevent COMMIT
I know why SQLite3 is broken. This code: Topic.transaction do |transaction| transaction.rollback! end results in the following database commands: BEGIN; ROLLBACK; COMMIT; In other words, there is a COMMIT when no transaction is in flight. MySQL and Postgres are coll with it, but SQLite3 blows up with indignation. Recorded as a ticket: http://dev.rubyonrails.org/ticket/8030
2007 Jul 16
6
RubyToken::AlreadyDefinedToken and Edge Rails Docs
I''m having a wee bit of trouble building documentation for Edge Rails (rev 7187). When I attempt to run the doc:rails taask (or any doc:* task), I get the following error: -- BEGIN -- rake aborted! uninitialized constant RubyToken::AlreadyDefinedToken /Users/jherdman/Projects/crosslisting/vendor/rails/activerecord/ lib/../../activesupport/lib/active_support/dependencies.rb:263:in
2007 Oct 24
5
Utility that checks outdated patches
I just noticed I frequently encounter patches that need to be updated because of applied changes. Maybe this can be automated? Not automating the "updating of the patch" part, but the part where a comment is posted to the ticket so the submitter is informed. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups