Displaying 20 results from an estimated 7000 matches similar to: "How do I overwrite/extend a scaffold module?"
2006 Jun 19
2
is there a ''Markaby_scaffold'' available?
I discovered Markaby recently, and am loving it! I''m generating scaffolds,
then converting them to Markaby ''.mab'' files. It got me wondering... Has
anyone written a plugin to generate scaffolds in Markaby, yet?? That would
be truly awesome if there was on out there already.
--
Best Regards,
-Larry
"Work, work, work...there is no satisfactory
2006 Dec 17
1
Markaby template & layout (can't get them to work together)
Hi all,
I am starting a new rails app with the Markaby plugin (had some issues
installing, but think its working).
First, i created an index.mab file for a controller containing:
h1 "First template"
That rendered fine. Also, I do not have a "def index ..." in the
controller.
Then I created an app/layouts/application.mab file. It didn''t get picked
up until after
2006 Jun 28
4
[markaby] Trouble accessing session values.
Evaluating session variables inside a markaby paragraph tag always returns
false. For example
welcome.mab
--
p "Good morning Mr. #{session[:user]}."
--
displays:
Good mornig Mr.
How can I access session variables in maraby?
--
Best Regards,
-Larry
"Work, work, work...there is no satisfactory alternative."
--- E.Taft Benson
-------------- next part
2006 Jun 15
8
Markaby Installation Issues
Ok,
So I followed the directions.. I did a ''gem install markaby'' (which sounds
like its enough to get me going for rails), but I wasn''t sure, so I tried to
install the plugin as well.
Plugin installation fails looking for a file:
Script/plugin install http://code.whytheluckystiff.net/svn/markaby/trunk
Outputs this error:
+ ./trunk/svnindex.xsl
2006 Apr 25
5
markaby or erb?
Guys,
We''re embarking on a new dev project, and I''m curious....why would one
choose markaby over erb? I for one am no fan of the erb syntax, but
aside from that it''s similar to other technologies I''ve used in the
past: PHP, JSP, ASP, etc.
Why would one choose markaby over erb? What are the benefits? What are
the drawbacks? Is there anything remarkable
2006 Oct 14
3
[Markaby] Any workaround for Rails caching?
The ability to use Rails'' caching is very important to
me. Is there any way at all to get Rails caching
working with Markaby templates? Right now if I use
cache tags, I get some "length" error.
Thanks,
Joe
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
2006 Mar 03
17
RCSS problems
Hi List!
Following http://rcss.rubyforge.org/files/README.html, I''m trying to get
RCSS to work with Rails. The rcss command itself works fine, but when
trying to access http://localhost:3000/rcss/test.css I always get
"Unknown action - No action responded to test.css", which I don''t
understand since the route and controller are in place.
Anyway, hopefully this is
2006 Jun 28
9
Scaffold Issue with Postgres
Hi guys,
I''ve been able to successfully install the postgres adapter for a remote
database machine to get rails up. My machine is running on Fedora 2.
Rails version 1.1.2. Is my yml config correct? I am getting this error
when I execute script/generate scaffold service_contents content :
exists app/controllers/
exists app/helpers/
create app/views/spiel
exists
2007 May 07
3
Module Madness
I''m wanted to make a "global" module that I could include in my
application for some shared code between them. I''ve been making
several camping apps and wanted them all to share a helper/partial
that contained the navigation.
I ran into a lot of difficulty when trying to include it, the primary
problem being "methodUndefined" errors. I did finally get it to
2006 Nov 03
2
[OT] Markaby trunk and Rails ivars
Can someone explain the new Markaby syntax to me? I''m using Markaby
as a Rails plugin, fetched from the trunk.
I''m losing my instance variables somehow (@thing is always nil):
class ThingsController < ApplicationController
def index
@thing = "Bacon of the chunky variety"
end
end
# app/views/index.mab
h1 { "You should see a thing here:" }
p {
2007 Sep 27
14
Camping and ruby2ruby
Hi everybody,
I would like to use ruby2ruby in a caming project, but there seems to
be an incompatibility with camping, ruby2ruby and markaby.
Unfortunately I receive strange Markaby::InvalidXhtmlErrors.
To demonstrate, that only combination of all three components causes
the problem I added the following code. I relies on Markaby and
ruby2ruby only and works fine (a.k.a. as expected).
2007 Aug 29
11
Non-Erubis Templates
Trunk Issue: Because of the use of ''autoload'', template handlers other
than Erubis are not loaded automatically (Haml, XMLBuilder). Either
this should be fixed, or the documentation should be updated to
instruct people how to use non-Erb template engines.
Apparently the solution is to do something like this in merb_init.rb:
::Merb::AbstractController.register_engine
2007 Apr 09
10
changes in 0.8 and greater - should_
Has the should_... syntax changed? I''m getting errors when running
the following:
should_render(:index)
should_be_valid
should_not_be_valid
should_respond_to
should_be
should_render
I thought the syntax changed to something like the following:
obj.should render(:index)
but this doesn''t seem to work.
Scott
2006 Mar 23
11
Contact page
Hi
I have justed started using Rails.
How do I create a contact page. By this I mean one with a contact form
etc.
Thanks
--
Posted via http://www.ruby-forum.com/.
2007 May 14
7
Help a newb with 0.3.1
Hi, first off thanks Ezra for Merb - it''s certainly interesting and
I''m keen to have a play. However, I''m having difficulties in getting
started. I''ve followed the docs for setting up mrblog and everything
seems to be installed correctly, and merb appears to start fine:
$ merb
you must install the markaby gem to use .mab templates
you must install the
2006 Jul 06
5
Generate scaffold failing
Hi all,
Got a Win2k3 Server box (but this has been verified not to work also on
WinXP Pro SP2) with:
Ruby 1.8.2
Rails 1.1.4
PostgreSQL 8.1
The generate\scaffold script fails to generate the files inside the
app/model/views directories. It actually generates the view directory
but fails to produce any files.
The same thing works perfectly when I''m targetting MySQL.
So is this normal
2006 Jul 21
3
Extending scaffold with plugin
I want to create a new scaffold. Would it be best to implement as a plugin?
Any tips on how to get started?
--
Best Regards,
-Larry
"Work, work, work...there is no satisfactory alternative."
--- E.Taft Benson
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Sep 10
11
Using partials with Markaby
I''m trying to use a partial from within Markaby. I haven''t been able to
figure out how to access a parameter passed into the partial. Here''s the
code I''m using:
h1 "Create a new note"
if @note
render :partial => ''form/errors'', :record => @note
end
...
(that snippet, as well as the partial is stolen shamelessly from Restolog
2010 Aug 03
2
Strange error message when rendering the scaffold form
Hello everyone, I am developing my application and I created a
scaffold called listas, but when I acess /listas/new I get this error
message:
NoMethodError in Listas#new
Showing /home/rodrigo3n/code/listeiroo/app/views/listas/_form.html.erb
where line #15 raised:
undefined method `deep_symbolize_keys'' for nil:NilClass
Extracted source (around line #15):
12: <% end %>
13:
14:
2006 Jan 12
9
Scaffold shows all attributes altough I use attr_accessible!
Hi all
I have a Model like this:
class Member < ActiveRecord::Base
attr_accessible :username, :email, :first_name, :last_name
end
I have created a scaffold using script/generate scaffold member members
Using the URL localhost:3000/members/edit/1 I can edit all attributes,
including created_at, lock_version etc.! But it should only show the
attributes I listed in attr_accessible!
What