我习惯了 eclipse 和 notepad++ 自动打开上次退出时出现的文件和选项卡的行为。有谁知道是否有办法在 Gedit 中启用此功能?我正在使用的会话管理插件似乎需要显式菜单选择加载和保存才能检索会话。有人知道是否有办法自动恢复上次会话或选择默认会话?
谢谢。
我无法弄清楚如何在rails 3.0中执行此操作.我有一个控制器,products一个动作search,并且在routes.rb我尝试过
resources :products, :collection => {:search => :post }
Run Code Online (Sandbox Code Playgroud)
和
match 'products/search' => 'products#search', :via => [:get, :post]
Run Code Online (Sandbox Code Playgroud)
和许多其他设置,但每当我访问products/search我仍然得到一个错误抱怨具有id的产品search,无法找到该操作show.谁知道我做错了什么?
谢谢.
好像我无意中修改了我的git配置,这样当我从branchA切换到master时,所有更改都会自动合并到master.没有我在branchA中的提交或我的合并到master,就会发生这种情况.在过去,如果我在修改跟踪文件并且没有提交后尝试切换分支,我得到"未提交的更改,无法切换分支"消息,但现在我无法引发该行为.我的git配置发生了一些变化,但我不知道它可能是什么.这听起来对任何人都很熟悉吗?
任何帮助是极大的赞赏.
Ubuntu 10.10
git 1.7.1
github.com
这是我的git config -l:
giggle.main-window-maximized=false
giggle.main-window-geometry=993x731+318+160
giggle.history-view-vpane-position=223
giggle.main-window-view=HistoryView
giggle.file-view-vpane-position=153
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
remote.origin.url=**************************************
branch.master.remote=origin
branch.master.merge=refs/heads/master
submodule.config/shared_capistrano.url=******************capistrano.git
submodule.vendor/plugins/authentication_client.url=********************.git
branch.dev.remote=origin
branch.dev.merge=refs/heads/dev
branch.1.3.9.remote=origin
branch.1.3.9.merge=refs/heads/1.3.9
Run Code Online (Sandbox Code Playgroud)