search for: some_url

Displaying 15 results from an estimated 15 matches for "some_url".

Did you mean: home_url
2006 May 21
6
Is there a way to call helper methods in a controller?
Hi, Is there a way to call helper methods in a controller? I want to do something like this in my controller Class MyController < Action.... def my_method string = link_to "some_url", :controller => "home", :action => "command" end end link_to is an ActionView helper method and it seems that I couldn''t access the method in the controller even if I used the complete namespace... ActionView::Helpers::UrlHelpers::link_to I''ve...
2006 Jun 23
4
Ajax.Request with page reload?
I need to send a POST request via a link, along with paramater data for an action, and the page needs to reload. link_to_remote worked great when I was updating a DOM element but obviously won''t work when I need to reload a page. Is there an option -- Posted via http://www.ruby-forum.com/.
2007 Jul 13
2
How do you handle pop ups?
When I click a link to download a file, a pop up window comes up to save the file. Is there a way to enter a file name and click the submit button with mechanize? Thanks, Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mechanize-users/attachments/20070712/558f7018/attachment.html
2008 Feb 09
1
problem using evalJSON with Ajax
...m trying to use evalJSON with Ajax, but somehow it doesn''t work. for instance, I have a php file has the following output: "name": "Violet", "occupation": "character" and I have a html file with the following javascript: new Ajax.Request(''/some_url'', { method:''get'', onSuccess: function(transport){ var json = transport.responseText.evalJSON(); } }); alert (json.name); by right, i should get an alert box displaying ''Violet'' right? can someone help? thanks in advance. :) --~--~---------...
2013 Jun 09
2
Minitest mock or stub methods
...therwise. Then I can call artist.tracks which fetches all available tracks at the 3rd party and returns them as an array. In my artist class I have a separate method that makes the actual API calls and parses the XML response with Nokogiri def self.find(name: nil) # Stuff... doc = get_data(some_url) # More stuff... end def get_data(req_url) Nokogiri::XML(open(req_url)) end When writing my tests I don''t want to hit the actual URL but instead load an XML file from disk. I''m using Minitest which has a mocking library, but how do I actually mock (or is it more appropria...
2012 Mar 26
1
Could not prefetch package provider 'freebsd': No resource and no name in property hash in freebsd instance
Hi, I am puzzled. I installed exim-mysql on a freebsd machine without problem before but now this manifest creates an error: class exim::install { package { [ ''mail/exim-mysql'' ]: ensure => installed, provider => freebsd, source => ''http://<some_url>'', } } Here is the error: err: Could not prefetch package provider ''freebsd'': No resource and no name in property hash in freebsd instance info: Applying configuration version ''1332781404'' err: /Stage[main]/Exim::Install/Package[mail/exim-mysql]:...
2008 Jan 13
6
Graceful way to handle execution expired and bad URI errors?
Hello, I have a program that takes blog urls that our customers enter into their profiles. In some cases they enter bad feeds (IE html pages instead of atom or rss), and it throws these two errors: execution expired and bad URI errors in the view. I need to find a graceful way to handle both. Preferably, if I could find a way to throw an error message for the execution expired
2015 Jun 17
2
repo.or.cz links are no longer valid.
...; redirection here, but in current features of the web interface). > > Thank you and Best Regards, And thanks for reporting. I haven't yet taken a closer look at the web representation of a git repo. The transition is still in progress. I'm waiting for an announce that `git clone SOME_URL` is ready. When git cloning and git pulling is possible, then I'm happy. A web view on the repo is low priority to me. My advice in this: * Let the migration stablize * Wonder how much HTML caching there is * Find contact with maintainers of the web sauce Groeten Geert Stappers -- Leven e...
2008 Jan 18
18
Rails versus PHP in complex HTML/CSS
I have done a bunch of Rails stuff on my own and my company uses PHP. I often have to integrate very complex HTML/CSS into PHP. I know that the PHP looks more closer to the HTML than Rails because Rails has alot of link_to and other macro like calls that generate alot of stuff that you don''t see in the template. I am wondering if that could make it any tricker to generate the complex sort
2006 Aug 06
1
periodically_call_remote forces asynchronous to true?
Whenever I use periodically_call_remote it outputs as the following: <script type="text/javascript"> //<![CDATA[ new PeriodicalExecuter(function() {new Ajax.Request(''some_url'', {asynchronous:true, evalScripts:true})}, 2) //]]> </script> If I understand correctly, setting asynchronous to true means that if one request takes longer than 2 seconds, the next request will continue anyways. I want them to happen in order. Therefore, I want to make async...
2015 Jun 17
0
repo.or.cz links are no longer valid.
...web interface). > > > > Thank you and Best Regards, > > And thanks for reporting. > > > I haven't yet taken a closer look at the web representation of a git repo. > > The transition is still in progress. I'm waiting for an announce that > `git clone SOME_URL` is ready. > > When git cloning and git pulling is possible, then I'm happy. > > A web view on the repo is low priority to me. My advice in this: > * Let the migration stablize > * Wonder how much HTML caching there is > * Find contact with maintainers of the web sauce &...
2013 Jul 06
2
I thought Rails 3.2 ActionController automatically converts JSON params hashes...
Hey, I was thinking I''d have my controllers do double-duty: the same actions handling json and html requests differentially. For this, it''s useful that Rails 3.2 automatic params hash conversion from json work (as described here<http://guides.rubyonrails.org/v3.2.13/action_controller_overview.html#json-xml-parameters>in the Rails docs). (I''m using ruby 1.9.2.)
2006 Jan 11
3
sortables callbacks
...right[]=4&right[]=5&right[]=6&right[]=1 i was thinking if i set up a JS variable that i can set to equal both, then send the data like this var foo=Sortable.serialize(''left'')+"&"+Sortable.serialize(''right''); new Ajax.Request(''some_url'', {method:''post'', postBody:foo});"; foo=""; how would i do something like that? i need to post both serialized lists to a database in the same field, and it''s not efficent to send half the data twice and do an update on the field. any ideas on...
2015 Jun 15
3
git daemon on zytor is back in action
On 06/15/2015 01:08 PM, Ady via Syslinux wrote: > > Example in repo.or.cz: > > tag name: > http://repo.or.cz/syslinux.git > /tag/refs/tags/syslinux-4.07 > > tag hash: > http://repo.or.cz/syslinux.git > /tag/a4fcb6d867aadcaf5af8f87eb1ba96abe2748159 > > If I understand correctly, the corresponding syntax for git.zytor.com > and kernel.org would
2010 Jan 22
11
Finding out where a variable is defined
I''m looking at code in a project. I have no clue what is being passed into the resource parameter: def read_authorized?(resource) if resource.respond_to? :user_read_authorized? resource.user_read_authorized? current_user else true end end Is there any kind of debugging feature I can run to see what gets passed into resource in this specific