Commit Graph

11 Commits

Author SHA1 Message Date
Rafael Mendonça França 1de258e6c6 Remove wrapper div for inputs in button_to
Related with cbb917455f
2014-04-17 16:15:43 -03:00
Attila Domokos 4b4db54e6b Adding an documentation example and a test to button_to with path
I did not see in the docs that `button_to` supports not only URLs but paths as well. I documented this functionality with a unit tests and added an example to the docs as well.
2014-02-02 10:27:18 -06:00
Rafael Mendonça França 6c570648ad Merge pull request #10471 from andyw8/button_to_params
Add params option for button_to

Conflicts:
	actionpack/CHANGELOG.md
2013-10-24 18:02:19 -02:00
Andy Waite e6e0579def Add params option for button_to
The parameters are rendered as hidden form fields within the generated
form. This is useful for when a record has multiple buttons associated
with it, each of which target the same controller method, but which
need to submit different attributes.
2013-09-18 19:56:46 +01:00
Carlos Antonio da Silva b77781c012 Fix failure with minitest 5.0.7
Require minitest/mock in test where stub method is needed.

Apparently this was being "imported" by minitest pride plugin, which
previously required "minitest/autorun", that required "minitest/mock",
making the method available by chance.

It has been changed in minitest:
595ce955c0

So we need to make sure we require what we really need where necessary.
2013-09-06 09:29:00 -03:00
Rafael Mendonça França b3c0858f73 Make current_page? compare binary strings 2013-08-01 17:59:25 -03:00
Rafael Mendonça França 69339e54d3 Fix `current_page?` when the URL contains escaped characters
In some cases webservers like nginx send the escaped characters
lowercased to the Rails application. The current_page? helper was
comparing the escaped strings that are different since Ruby escapes the
URL using uppercased characters.
2013-08-01 10:46:35 -03:00
sanemat f71b075d6c Fix link_to with block and url_hash
Use link_to with block and url_hash, expect block as name.
But ignore block and use url_hash as name.
3-2-stable passes this test. 4-0-stable and master fail this.
2013-07-07 23:21:47 +09:00
sanemat 56e3419fef Remove action view test duplication
Same test exists above 2 or 3 lines.
2013-07-07 00:59:30 +09:00
Piotr Sarnacki 5e5bf31b4a Remove unneeded files 2013-06-20 17:23:16 +02:00
Piotr Sarnacki eb23754ebb Move template tests from actionpack to actionview 2013-06-20 17:23:16 +02:00