English 中文(简体)
应向数据库模板表提供哪些资源?
原标题:What CRUD resources should be provided for a database template table?

• 尝试一个网络应用程序,以便一度追踪阅读多本书的任务。 例如,如果书刊A &B有16章,C有32章,那么,在16周内完成所有三本书,一个人需要读读书A &的每周一章;B和C书的每周两章。

当用户自行制定阅读计划时,该应用程序将复制阅读计划模板,为每周确定实际任务。 每项转让都将根据用户规定的起始日期规定一个到期日。 每项任务也将在一至三一的基础上与每周阅读的每章联系起来,以便用户能够按照每星期需要阅读的四章逐章跟踪进展情况。

enter image description here

Questions

  • Should I provide the Create CRUD resource for assignments, even though users won t create individual assignments?
  • Should I just provide the Create CRUD resource for a reading plan, which would then go through and copy the template assignments to that user s reading plan assignments?

This is a Ruby on Rails 3.1 application.

最佳回答

除非你确实被困在时间/资源上,否则我建议提供直接的儿童基金会功能,即使这些功能可能局限于某些行政/超级用户。

No matter how brilliantly designed, an application sooner or later will need some quick&dirty bypass functionality to directly amend data at a lower level, in my experience.

问题回答

You should focus the User Experience (UX) on what the users want/need to do: creating reading plans.

用户不关心(也不必注意)您的内部建筑模式。

A common model for complicated input is the "wizard" which steps the user through a number of sequential steps as they fill out small forms or answer questions. That may be of help here.

您可能希望能为自己的行政用途而向各种表格提供额外的信使。 但是,对于用户本身来说,重点是他们对这个问题的看法,而不是你们对这个问题的看法。

如果他们想有一个由若干任务组成的阅读计划,那么作为计划的一部分,他们可以看到这些任务。 纽约总部 但是,把任务作为可扩展的章节放在每读写计划的人的单一html网页上,很难在屏幕上保持精神状态。





相关问题
rails collection_select vs. select

collection_select and select Rails helpers: Which one should I use? I can t see a difference in both ways. Both helpers take a collection and generates options tags inside a select tag. Is there a ...

SSL slowness in EC2

We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...

Auth-code with A-Za-z0-9 to use in an URL parameter

As part of a web application I need an auth-code to pass as a URL parameter. I am currently using (in Rails) : Digest::SHA1.hexdigest((object_id + rand(255)).to_s) Which provides long strings like : ...

RubyCAS-Client question: Rails

I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?

activerecord has_many :through find with one sql call

I have a these 3 models: class User < ActiveRecord::Base has_many :permissions, :dependent => :destroy has_many :roles, :through => :permissions end class Permission < ActiveRecord::...

Ordering a hash to xml: Rails

I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml

Text Editor for Ruby-on-Rails

guys which text editor is good for Rubyonrails? i m using Windows and i was using E-Texteditor but its not free n its expired now can anyone plese tell me any free texteditor? n which one is best an ...

How to get SQL queries for each user where env is production

I’m developing an application dedicated to generate statistical reports, I would like that user after saving their stat report they save sql queries too. To do that I wrote the following module: ...

热门标签