similar to: modifying scaffold method

Displaying 20 results from an estimated 120 matches similar to: "modifying scaffold method"

2006 Dec 28
1
Default Scaffolding Gives Errors
This is the default scaffolding for list.rhtml: [code] <h1>Listing <%= @scaffold_plural_name %></h1> <table> <tr> <% for column in @scaffold_class.content_columns %> <th><%= column.human_name %></th> <% end %> </tr> <% for entry in instance_variable_get("@#{@scaffold_plural_name}") %> <tr> <% for
2006 May 03
0
Newbie Help
Is it my environment? Is something wrong, cause I thought this should just work? I have a simple table and I created a model and a controller: ruby script/generate controller Restaurant ruby script/generate model Restaurant I edited the controller to this: class RestaurantController < ApplicationController scaffold :Restaurant end I run it and: http://0.0.0.0:3000/Restaurant works
2013 Apr 02
4
gmaps4rails: undefined method `model_name' for NilClass:Class
Hi All, just in a spot of bother with this gem, I am trying to create a new location and get the above msg. here is my controller: class LocationsController < ApplicationController # GET /locations # GET /locations.json def index @locations = Location.all @json = Location.all.to_gmaps4rails end respond_to do |format| format.html # index.html.erb
2006 May 04
9
Help: wrong number of arguments (0 for 1)
Is it my environment? Is something wrong, cause I thought this should just work? I have a simple table and I created a model and a controller: ruby script/generate controller Restaurant ruby script/generate model Restaurant I edited the controller to this: class RestaurantController < ApplicationController scaffold :Restaurant end I run it and: http://0.0.0.0:3000/Restaurant works fine,
2006 Jul 28
0
reserved words
I''ve seen this topic has been discussed a couple of times. However, I''m wondering if a method exists in rails to test a name against the reserved words listed on the wiki? Just wanted to check before I write this myself (and type in all of those names -- including PostgreSQL). To explain the application: I''ve written a project that manages ldap data. On a fresh
2014 Nov 01
3
Samba and NT (yes really) server
Okay you can stop laughing, yes I still have an NT server running for some special software. I've got a new linux machine running Samba version 3.6.23 and am having problems getting it to connect to winXP machines to talk to their shared printers It can join the domain and smbtree and smbclient sort of work. 192.168.4.28 is a windows XP machine NEW#: smbclient -L 192.168.4.28 -U
2008 Jan 13
2
module_eval and scope question
When trying to understand a piece of code from the Ruby-On-Rails framework, I found that I''m still lacking knowledge about scope issues in Ruby. Here is a stripped down version of the code I''m trying to understand (in case you happen to use Rails: This is from file scaffolding.rb): module ActionController module Scaffolding .. module ClassMethods def
2011 Oct 22
1
virt-install with set vnc password
Hi Guy, Anyone know how we can set up the vnc password during using virt-install command ? # virt-install \ --connect qemu:///system \ --name demo \ --ram 500 \ --disk path=/var/lib/libvirt/images/demo.img,size=5 \ --network network=default,model=virtio \ --vnc \ --cdrom /dev/cdrom
2006 Aug 06
0
Rails Core Weekly July 16 - August 6
Rails Core Weekly July 16 - August 6 Rails Core Weekly summarizes the rails-core mailing list, a list dedicated to Ruby on Rails internals and its development. RCW is brought to you by Rodney Ramdas and proofread by the good people of The Caboose (http://blog.caboo.se/) for accuracy. RSS feed and RCW home: http://www.pinupgeek.com/articles/category/rails-core-weekly-news The ruby on rails
2006 Feb 25
31
Ajax Scaffold Generator for Rails Released
I just released a whole new version of the Ajax Scaffold Generator (for Ruby on Rails). The generator creates a scaffold page like the typical rails one, except adding, editing and deleting are all done inline. The generated scaffold is valid XHTML strict and fully styled right out of the box. Check out the demo: http://ajaxscaffold.height1percent.com/ And the how-to:
2007 Apr 18
0
[PATCH 13/14] i386 / Introduce hypervisor ldt hooks
Add hooks that the hypervisor can use to establish writable and non-writable pages for LDT pages. I made these parallel the page flags as defined in include/linux/page-flags.h, since the flag mechanism is very similar to the hypercall page flagging, and extended easily later to include PT, PD, PDP, GDT, etc. Patch-against: 2.6.13-rc5-mm1 Patch-keys: i386 ldt paravirt xen Signed-off-by: Zachary
2007 Apr 18
0
[PATCH 13/14] i386 / Introduce hypervisor ldt hooks
Add hooks that the hypervisor can use to establish writable and non-writable pages for LDT pages. I made these parallel the page flags as defined in include/linux/page-flags.h, since the flag mechanism is very similar to the hypercall page flagging, and extended easily later to include PT, PD, PDP, GDT, etc. Patch-against: 2.6.13-rc5-mm1 Patch-keys: i386 ldt paravirt xen Signed-off-by: Zachary
2006 Feb 01
18
Switchtower Error
This is my deploy file set :application, "varcasa stage" set :repository, "file:///c:/svnrepo/thenali/trunk" # ============================================================================= # ROLES # ============================================================================= # You can define any number of roles, each of which contains any number of # machines. Roles might
2006 Feb 03
4
Zipcode Search
Is there any package that I could use for zipcode search. I want to display schools that near a particular zipcode. I have no idea how to do this. It will be great if anyone can point me where I could find info -- Rgds, --Siva Jagadeesan http://www.varcasa.com/ Education Through Collabration -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Feb 14
3
Arranging Models
I know we could arrange controllers as modules. Can we also arrange models in modules? -- Rgds, --Siva Jagadeesan http://www.varcasa.com/ My First Rails Project. Education Through Collabration -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060214/d65f88c2/attachment.html
2006 Feb 16
6
http://127.0.0.1:3000/
Hi, I installed ruby on rail on my windows system. I sucessfully made one database related application. But when i want to execute it, i have to give url like http://127.0.0.1:3000/wedding/ etc. can''t i browse through my browser? 192.168.0.51 is my ip. Another one thing is i never get file named new in my example then also it executes file called new for database inserting ,how it is?
2007 Apr 18
1
[PATCH 1/5] Add pagetable allocation notifiers
Hooks are provided for the mach-XXX subarchitecture at the time prior to a page being used as a page table at all levels, for PAE and non-PAE kernels. Note that in PAE mode, multiple PDP roots may exist on the same page with other data, so the root must be shadowed instead. This is not a performance issue, since PAE only uses 4 top level PDPEs. The hooks are: SetPagePTE(ppn) - indicates that a
2007 Apr 18
1
[PATCH 1/5] Add pagetable allocation notifiers
Hooks are provided for the mach-XXX subarchitecture at the time prior to a page being used as a page table at all levels, for PAE and non-PAE kernels. Note that in PAE mode, multiple PDP roots may exist on the same page with other data, so the root must be shadowed instead. This is not a performance issue, since PAE only uses 4 top level PDPEs. The hooks are: SetPagePTE(ppn) - indicates that a
2006 Feb 01
4
Locking out users from certain records/urls
I am using the standard login controller that ships with RoR to authenticate users in my application. In my app, Users belong to Clients, Clients have Projects that users are assigned to (stored in a stakeholder table with user_id and project_id columns) , then each project has a bunch of folders and assets (file uploads). So currently I have urls that look like /project/show/12 etc. I want
2006 May 23
5
Wierd pagination problem - Unknown options: order?
I am trying to use pagination with the order option. I am following examples I''ve seen all over the web, but I am getting an error. My code seems simple: def list @upload_pages, @uploads = paginate :uploads, :per_page => 20, :order => ''id'' end Yet I keep getting this error: ___________________________________________