Commit Graph

2467 Commits

Author SHA1 Message Date
José Valim
6e581cce1c Merge pull request #568 from carlosantoniodasilva/fields_for_fixes
Fields for fixes for non nested attributes and without object
2011-05-15 15:51:20 -07:00
Carlos Antonio da Silva
82f33dce9c Use record_name to make fields for methods more consistent 2011-05-14 22:18:36 -03:00
Carlos Antonio da Silva
f0479cbbd5 Refactor fields_for to make the api more clear, and fix usage with non nested attributes and without object 2011-05-14 22:09:12 -03:00
Pirogov Evgenij
4b10585128 Clean up redundant backslashes 2011-05-14 15:40:32 -07:00
Carlos Antonio da Silva
6871cda693 Cleanup instantiate builder method definition 2011-05-14 17:23:34 -03:00
Xavier Noria
d491130236 Merge branch 'master' of git://github.com/lifo/docrails
Conflicts:
	actionpack/lib/action_view/helpers/date_helper.rb
	railties/lib/rails/generators/rails/app/templates/config/initializers/wrap_parameters.rb.tt
2011-05-14 11:21:27 +02:00
Sebastian Martinez
ab880b9eb0 Follow code conventions on docs 2011-05-10 20:55:31 -03:00
Sebastian Martinez
71d6b088ec Fix styiling issues on DateHelper docs 2011-05-10 20:19:47 -03:00
Sebastian Martinez
956a0f4cfd Fix styiling issues on AtomFeedHelper docs 2011-05-10 19:39:34 -03:00
Sebastian Martinez
1ca3ae5f41 Remove extra whitespace. 2011-05-10 19:36:00 -03:00
Sebastian Martinez
350b977e5b Fix styiling issue on TranslationHelper docs 2011-05-10 19:34:59 -03:00
Sebastian Martinez
1f7d55e5c7 Fix styiling issue on ActionView::Template docs 2011-05-10 19:28:37 -03:00
Aditya Sanghi
a59a67d01c Explain the implication of using :ignore_date on time_select 2011-05-10 07:37:27 -07:00
José Valim
86a0f7f735 Add tests for content_for() for read, closes #475. 2011-05-10 10:22:09 +02:00
Philip Roberts
9b84bd354d Fixed typos in documentation for the date_select helper in actionpack/action_view.
The description for an example of the date_select method did not match the actual code example.
2011-05-09 03:21:16 -07:00
José Valim
a9b72fbc9e Optimize the most common resolver case. 2011-05-09 11:17:24 +02:00
José Valim
4f03e404b2 No need for replace. 2011-05-09 10:42:54 +02:00
Ryan Sandridge
95ec18a083 Documentation fix. Corrected a copy/paste mistake for link_to_if documentation. 2011-05-08 13:26:12 -04:00
Jason
c7d8661118 Fixed documentation of select tag; options with html need to pass through html_safe
https://github.com/rails/rails/issues/447
https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/6759-api-document-incorrect
2011-05-08 08:58:48 -06:00
José Valim
e5a0122419 Revert to use === only here because of perf. :( 2011-05-08 12:40:15 +02:00
José Valim
843cab6f98 Merge pull request #420 from burke/master
Accept single prefix in ActionView::MissingTemplate#initialize
2011-05-08 03:35:14 -07:00
Burke Libbey
06671c37de Added activesupport requires for Array.wrap in previously modified files 2011-05-07 18:30:50 -05:00
José Valim
0a1ba4eab0 Always expand */* 2011-05-07 23:43:44 +02:00
mathieuravaux
fadd1fa3d3 Fixes ticket #6379. Improved the handling of Accept headers containing */*.
`lookup_context#formats=` being too restrictive, "Accept: text/javascript, */*"
resulted in [:js, "*/*"] formats instead of [:js, :html].

Signed-off-by: José Valim <jose.valim@gmail.com>
2011-05-07 23:35:52 +02:00
José Valim
7d7a353f77 Merge pull request #343 from asanghi/ampm
Allow AM/PM format in datetime selectors
2011-05-07 06:31:18 -07:00
Burke Libbey
4c4d5c7e6c Remove redundant check for is_a?(String) 2011-05-06 15:28:31 -05:00
Burke Libbey
156039c4cf Added a test for MissingTemplate change, and changed to use Array.wrap() as
requested by josevalim.
2011-05-06 14:02:31 -05:00
Burke Libbey
30d49d001e Made ActionView::MissingTemplate#initialize optionally accept a single string
prefix to be converted to an array as in ActionView::PathSet#find_all.
2011-05-06 12:42:27 -05:00
Aditya Sanghi
65a9563209 strip space 2011-05-06 15:51:09 +05:30
Aditya Sanghi
ae7d0d816d Take leap years into account more seriously when calculating year distance [#6074 state:resolved] 2011-05-06 15:42:05 +05:30
José Valim
a93bd11b1d Use remove possible method here. 2011-05-04 19:31:43 +02:00
José Valim
1632a3a49f More AV::Base cleanup. 2011-05-04 12:07:37 +02:00
José Valim
6afc900191 Move prefixes to view paths as they are now a lookup context dependency. 2011-05-04 11:28:37 +02:00
Xavier Noria
d9c39c3ae9 restores the -j option, but now it accepts the name of any library
If passed "foo", a gem "foo-rails" is added to the Gemfile
and "foo" and "foo_ujs" are required in the application
JavaScript manifest.
2011-05-04 10:33:53 +02:00
José Valim
c9fa3f03fe Also allow prefixes as third argument to lookup context. 2011-05-04 09:07:11 +02:00
Nick Sutterer
eb327c1bab no @controller dependency in Renderers. 2011-05-04 00:12:11 +02:00
Nick Sutterer
88c21121f1 initialize prefixes in LookupContext. 2011-05-04 00:10:21 +02:00
Nick Sutterer
37f448e05e added :prefixes accessor to LookupContext. 2011-05-03 23:38:44 +02:00
José Valim
dd7afdb2dc Merge pull request #378 from danielvlopes/master.
Select_tag should have the same API of select from form_builder
2011-05-03 08:02:14 -07:00
José Valim
f9849070ac Add a shared entry point for AV and AC render which can be used as extension in the future. 2011-05-03 16:51:47 +02:00
Daniel Lopes
c5d54be746 fix select_tag to have the same behavior of select 2011-05-03 11:39:27 -03:00
José Valim
f7c711baee No need for a regexp here. 2011-05-03 12:42:42 +02:00
Aaron Patterson
81cfbf4146 removing auto_link and moving it to the rails_autolink gem. 💣 2011-05-02 15:43:33 -07:00
José Valim
13df194c00 Tidy up pending TODOs after discussion with Mr. Gatoz (@wycats). 2011-05-01 19:39:57 +02:00
José Valim
8dbee3aba6 Streaming docs. 2011-05-01 14:50:42 +02:00
José Valim
46611a995d log errors when an exception happens when streaming. 2011-05-01 13:40:14 +02:00
José Valim
b735761385 Introduce view renderer. 2011-05-01 13:40:13 +02:00
José Valim
367bdc5361 Remove view dependency from AV::Renderer. 2011-05-01 13:40:13 +02:00
José Valim
33cc001f91 More cleanup and moving responsibilities around. 2011-05-01 13:40:12 +02:00
José Valim
2f683fd870 Remove more dependencies from the view. 2011-05-01 13:40:12 +02:00