{5} Assigned, Active Tickets by Owner (Full Description) (4 matches)

List tickets assigned, group by ticket owner. This report demonstrates the use of full-row display.

tec (2 matches)

Ticket Summary Component Milestone Type Created
Description
#52 Rails form_tag and form_for problems lib defect 01/20/2007

The rails Rails form_tag and form_for helpers do not work as expected (Rails 1.2.1, Markaby 0.5 plugin). Here's some Markaby code to illustrate the problems (the first two forms illustrate the broken behavior, the second two show workarounds):

p 'form_for BROKEN'
form_for(:article, :url => article_path(@article), :html => { :method => :put }) do |f|
  f.text_field(:title)          # BROKEN: Outputs nil.
  submit_tag "Update"           # OK
end

p 'form_tag BROKEN'
form_tag(article_path(@article), :method => :put) do
  text_field(:article, :title)  # BROKEN: Outputs into separate form.
  submit_tag('Update')          # OK
end

p 'form_for OK'
form_for(:article, :url => article_path(@article), :html => { :method => :put }) do |f|
  self << f.text_field(:title)  # OK.
  submit_tag "Update"           # OK
end

p 'form_tag OK'
form_tag(article_path(@article), :method => :put) do
  div do
    text_field(:article, :title)  # OK.
    submit_tag('Update')          # OK
  end
end

PS: Thanks for the lovely templating language -- I just can't go back to ERB after using Markaby.


#49 in_place_edit_field broken lib defect 01/04/2007

in_place_edit_field is broken when using Markaby as view template language. An error about encountering a nil value occurs. Likely because in_place_edit_field is assuming the variable referenced is an instance variable. Might be a Rails bug instead of a Markaby bug.


why (2 matches)

Ticket Summary Component Milestone Type Created
Description
#23 Mixing rhtml, mab, and content_for gem 1.0 defect 08/16/2006

Creating sub-templates using content_for doesn't seem to work when used with rhtml templates. e.g.

application.rhtml
  h1 'application'
  <%= @content_for_layout %>

members.mab
  @content = @content_for_layout
  @content_for_layout = nil

  content_for('layout') do
    h2 'members'
    self << @content
  end

  render 'layouts/application', :content_for_layout=@content_for_layout

members/index.mab
  h3 'index'

With the above, application and index get rendered, but for some reason not members. If I change application.rhtml to a Markaby template, it works.


#25 rhtml to mab converter gem 1.0 enhancement 08/22/2006

Converting rhtml templates to mab is painful! Ow! Dear Lazyweb, I wish there was a converter!


Note: See TracReports for help on using and creating reports.