`
former
  • 浏览: 95774 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论

could not find xxx generator

    博客分类:
  • ror
阅读更多

学习了一下ror,使用其中的脚手架命令scafflod,想感觉一下ror告诉我的轻松、美好的开发感觉,但是却报了一个错误。命令错误如下:

java 代码
  1. F:\RadRails\workspace\depot>ruby script/generate scaffold product admin   
  2.       exists  app/controllers/   
  3.       exists  app/helpers/   
  4.       create  app/views/admin   
  5.       exists  app/views/layouts/   
  6.       exists  test/functional/   
  7.   dependency  model   
  8.       exists    app/models/   
  9.       exists    test/unit/   
  10.       exists    test/fixtures/   
  11.       create    app/models/product.rb   
  12.    identical    test/unit/product_test.rb   
  13.    identical    test/fixtures/products.yml   
  14. Couldn't find 'product' generator  

 

环境:ruby:186-25,db:postgresql8.1,driver:postgres-0.7.1

database.yml:

ruby 代码
  1. development:   
  2.   adapter: postgresql   
  3.   database: depot_development   
  4.   username: sa   
  5.   password: nightwind   
  6.   host: localhost   
  7.   encoding: UTF8  

通过radrails的data视图可以查看数据库里的表,并能做select。

不知道是什么问题,难道是因为postgresql里有多个服务器导致的?(通过pgadmin查看有2个server)

先试下mysql,看看会不会有类似问题。

分享到:
评论
4 楼 former 2007-05-17  
xxj 写道
former 写道
可恶,果然换了mysql,新建schema和table后,脚手架成功。问题究竟处在postgresql什么地方呢?
另外声讨一下http://media.pragprog.com,本来想偷懒去他那把“应用rails进行敏捷开发”的示例源码下载下来,他却给我个这个页面:
We're sorry, but access is denied to that document. 

This might be because you are accessing this site from a machine in China. Because of a massive amount of robot traffic from Chinese machines, we've had to take the unfortunate step of blocking access from those IPs. 

If you feel that access has been denied in error, please contact our support folks.


http://download.iteye.com/code/rails2-code.zip

Is this?


应该是的,现在下不了,谢谢先。
3 楼 former 2007-05-17  
xxj 写道
former 写道
可恶,果然换了mysql,新建schema和table后,脚手架成功。问题究竟处在postgresql什么地方呢?
另外声讨一下http://media.pragprog.com,本来想偷懒去他那把“应用rails进行敏捷开发”的示例源码下载下来,他却给我个这个页面:
We're sorry, but access is denied to that document. 

This might be because you are accessing this site from a machine in China. Because of a massive amount of robot traffic from Chinese machines, we've had to take the unfortunate step of blocking access from those IPs. 

If you feel that access has been denied in error, please contact our support folks.


http://download.iteye.com/code/rails2-code.zip

Is this?


应该是的,现在下不了,先谢谢!
2 楼 xxj 2007-05-17  
former 写道
可恶,果然换了mysql,新建schema和table后,脚手架成功。问题究竟处在postgresql什么地方呢?
另外声讨一下http://media.pragprog.com,本来想偷懒去他那把“应用rails进行敏捷开发”的示例源码下载下来,他却给我个这个页面:
We're sorry, but access is denied to that document. 

This might be because you are accessing this site from a machine in China. Because of a massive amount of robot traffic from Chinese machines, we've had to take the unfortunate step of blocking access from those IPs. 

If you feel that access has been denied in error, please contact our support folks.


http://download.iteye.com/code/rails2-code.zip

Is this?
1 楼 former 2007-05-16  
可恶,果然换了mysql,新建schema和table后,脚手架成功。问题究竟处在postgresql什么地方呢?
另外声讨一下http://media.pragprog.com,本来想偷懒去他那把“应用rails进行敏捷开发”的示例源码下载下来,他却给我个这个页面:
We're sorry, but access is denied to that document. 

This might be because you are accessing this site from a machine in China. Because of a massive amount of robot traffic from Chinese machines, we've had to take the unfortunate step of blocking access from those IPs. 

If you feel that access has been denied in error, please contact our support folks.

相关推荐

    CMake Practice

    cmake文档描述,介绍cmake的一些使用方法,cmake 是 kitware 公司以及一些开源开发者在开发几个工具套件(VTK)的过程中衍 生品,最终形成体系,成为一个独立的开放源代码项目。项目的诞生时间是 2001 年。

    解决 java.lang.RuntimeException: Could not generate DH keypair异常处理所需的bcprov的jar

    解决 java.lang.RuntimeException: Could not generate DH keypair异常处理。 bcprov-ext-jdk15on-1.60、bcprov-jdk15on-1.60两个包放到jre下的$JAVA_HOME/jre/lib/ext的路径下,然后配置$JAVA_HOME/jre/lib/...

    Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser

    标题 "Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser" 提示了一个Java运行时错误,这通常意味着在尝试加载或初始化`JRStyledTextParser`类时遇到了问题。`JRStyledTextParser`是...

    jmh-generator-bytecode-0.7.2.zip

    【标题】"jmh-generator-bytecode-0.7.2.zip" 提供的是Java Microbenchmark Harness(JMH)的一个工具,用于生成字节码级别的性能基准测试。JMH是Java平台上的一个开源框架,它专注于提供准确且可重复的性能测量。这...

    mybatis generator代码生成器

    MyBatis Generator是一个可以用来生成Mybatis dao,entity,Mapper文件的一个工具,在项目的过程中可以省去很多重复的工作,我们只要在MyBatis Generator的配置文件中配置好要生成的表名与包名,然后运行一条命令就会...

    html2image安装使用

    2. 当出现“Could not init font path element /usr/X11R6/lib/X11/fonts/CID/”这类缺少字体库的错误时,应安装必要的字体库,特别是对于中文简体,需安装`fonts-chinese`。同样使用`apt-get`安装所需的字体库,并...

    解决返回JSON报错:HttpMessageNotWritableException: Could not write JSON: Infinite recursion (StackOverflowE

    然而,当出现"HttpMessageNotWritableException: Could not write JSON: Infinite recursion (StackOverflowError)"这样的错误时,意味着在序列化过程中遇到了无限递归的问题。这个问题通常是由于对象之间的引用循环...

    mybatis generator Myeclipse插件

    Mybatis Generator是一款强大的自动化代码生成工具,主要用于简化开发过程中对数据库操作的代码编写。它能够根据数据库中的表自动生成Java实体类、Mapper接口及其XML配置文件、DAO接口及其实现类等,极大地提高了...

    Msc-generator使用手册

    Msc-generator是一款用于从文本描述中绘制各种图表的工具,它的版本为6.1.0,更新于2017年11月3日。这款工具可以生成多种类型的图表,包括信号图、流程图、块图等,每种图表都有其特定的用途和特点。为了更好地理解...

    mybatis generator

    Mybatis Generator是一款强大的工具,它为开发者自动化生成Mybatis的Mapper接口、XML映射文件以及实体类,大大减轻了在使用Mybatis时手动编写这些文件的工作负担。在Java开发环境中,ORM(Object-Relational Mapping)...

    Number generator_Numbergenerator_源码

    根据描述中的“True Random Number Generator”,我们可以推断“Numbergenerator”可能采用了TRNG,因为它提供了更高等级的随机性。 2. 实现方式:TRNG的实现通常涉及到硬件设备,这些设备能捕获自然界中的不可预测...

    mybatis-generator-core-1.3.7-API文档-中文版.zip

    赠送jar包:mybatis-generator-core-1.3.7.jar; 赠送原API文档:mybatis-generator-core-1.3.7-javadoc.jar; 赠送源代码:mybatis-generator-core-1.3.7-sources.jar; 赠送Maven依赖信息文件:mybatis-generator-...

    form-generator项目集成方案.doc

    form-generator项目集成方案 form-generator项目集成方案是指将form-generator项目集成到本地项目中,以便实现表单可视化设计和生成表单代码的功能。该方案主要涉及到 Vue 项目的多页面结构、组件引入、样式文件...

    mybatis中的generator工具

    MyBatis Generator(MBG)是MyBatis框架的一个实用工具,它允许用户自动生成Java源代码、XML配置文件以及数据库交互所需的SQL映射文件。这个工具极大地简化了开发过程,减少了手动编写这些文件的工作量,提高了开发...

    system generator 入门指导

    System Generator 是一种强大的工具,主要用于在Xilinx FPGA和SoC设计流程中实现数学算法和数字信号处理(DSP)系统。本入门指导将帮助你了解如何使用这个工具进行高效的硬件描述和仿真。 一、System Generator ...

    MyBatis Generator

    <jdbcConnection driverClass="oracle.jdbc.driver.OracleDriver" connectionURL="jdbc:oracle:thin:@xxx.xxx.xxx.xxx:1521:orcl4" userId="xxx" password="xxxx" /> <javaTypeResolver> ...

    MyBatis_Generator_1.3.3

    MyBatis的Generator现在需要JRE 1.6或更高版本 增强功能 改变了注解提供Generator使用新的SQL生成器类从MyBatis的3.2。如果你必须在一个旧版本的MyBatis运行,设置在配置属性“useLegacyBuilder”为“true”。 问题...

    generator-master.zip

    "generator-master.zip" 文件是一个与生成器(Generator)相关的压缩包,很可能包含了关于Python编程语言中的生成器(Generator)的示例代码、教程或者项目源码。生成器在Python中是一种特殊的迭代器,它们允许我们...

    mybatis-generator-1.3.2 代码生成

    【标题】"mybatis-generator-1.3.2 代码生成" 涉及到的是一个基于MyBatis框架的代码生成工具,主要用于自动化地创建MyBatis的SQL映射文件、Mapper接口、Mapper XML文件以及实体类。这个工具极大地提高了开发效率,...

    generator工具包

    在IT行业中,`generator工具包`是一个非常实用的开发辅助工具,尤其对于使用MyBatis框架的开发者来说,它可以极大地提高工作效率。MyBatis是一个优秀的持久层框架,它支持定制化SQL、存储过程以及高级映射,避免了...

Global site tag (gtag.js) - Google Analytics