products forums blog support careers about
  History | Log In     View a printable version of the current page.  
PRO USERS, to ensure 'PRIORITY SUPPORT' make sure that your ASAP account is "tagged" when you file the request. Click here for instructions on how to tag your account.
Issue Details (XML | Word | Printable)

Key: ROR-696
Type: Bug Bug
Status: Awaiting User Response Awaiting User Response
Resolution: Fixed
Priority: Critical Critical
Assignee: Chris Williams
Reporter: Dzso Pengo
Votes: 5
Watchers: 10
Operations

If you were logged in you would be able to see more operations.
Aptana RadRails

Eclipse freeze, on opening Controller with Ruby Editor in RadRails perspective

Created: 17/Mar/08 06:20 AM   Updated: 11/Apr/08 03:37 AM
Return to search
Component/s: Editor: Ruby
Affects Version/s: 1.0.0
Fix Version/s: 1.0.1

File Attachments: 1. Text File .log (65 kb)
2. File eclipse_mb_crash_log (24 kb)
3. File error01_ROR-699.rb (0.1 kb)

Issue Links:
Duplicate
 

Impact on Workflow: Critical
Studio Install Type: N/A
Operating System: Ubuntu
Participants: Chris Williams, Dima Geller, Dzso Pengo, Hendrik Gebhardt, Junghoon Lee, Lele Forzani and torneco


 Description  « Hide
Some controller makes this, not all. If I open them with text editor, it is ok, but when I chose "Ruby Editor" in "Open with..." menu, eclipse crashes, and I have to kill the eclipse process, and restart it.

This is the code one of this controller:

class Admin::SysMessagesController < ApplicationController

before_filter :login_required
before_filter :find_sys_message, :only => [:edit, :update, :destroy, :activate, :deactivate]

before_filter :edit_privilige_required, :only => [:edit, :update, :destroy, :activate, :deactivate, :create, :new]

layout 'admin'

def edit
render :partial => "sys_message_edit"
end

def activate
set_active true
end

def deactivate
set_active false
end

def set_active activeness
@sys_message.is_active= activeness
@sys_message.save!
redirect_to :action => :index
end

def create
return unless request.post?

@sys_message = SysMessage.new(params[:sys_message])
@sys_message.is_active = false
@sys_message.user_id = current_user.id

@sys_message.save!
flash[:notice] = 'Sikeres mentés.'
redirect_to :action => :index
rescue ActiveRecord::RecordInvalid
flash[:error] = 'Hiba történt a mentés során.'
redirect_to :action => :index
end

def update
return unless request.put?

@sys_message.update_attributes!(params[:sys_message])

flash[:notice] = 'Sikeres mentés.'
redirect_to :action => :index
rescue ActiveRecord::RecordInvalid
flash[:error] = 'Hiba történt a mentés során.'
redirect_to :action => :index
end

def index
@sysmessage_list_inactive = SysMessage.find(:all,:conditions => "is_active=0", :limit => 100, :order => 'updated_at desc')
@sysmessage_list_active = SysMessage.find(:all,:conditions => "is_active=1", :limit => 100, :order => 'updated_at desc')
end

def destroy
return unless request.delete?
@sys_message.destroy

flash[:notice] = 'Sikeres törlés.'
redirect_to :action => :index
rescue
flash[:error] = 'Hiba történt a törlés során.'
render :controller => :entity, :action => :edit

end

def find_sys_message
@sys_message = SysMessage.find(params[:id])
return true
rescue ActiveRecord::RecordNotFound
flash[:error] = 'Nem létez? szonosító'
redirect_to :controller => :sys_messages
return false
end

def new
@sys_message = SysMessage.new :is_active => false
edit
end

def edit_privilige_required
insuffisient_rights if not current_user.can_manage_sys_messages?
end

def insuffisient_rights
flash[:error] = 'Ehhez nincs meg a megfelel? jogosultsága.'
redirect_to :action => :index
return false
end

end



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Change by Chris Williams - 17/Mar/08 08:59 AM
Field Original Value New Value
Fix Version/s 1.0.1 [ 10032 ]
Affects Version/s 1.0.0 [ 10020 ]
Importance <b>Major</b> <span style="color:red; font-weight:bold;">Critical</span>
Priority Unprioritized [ 6 ] Critical [ 2 ]

Change by Chris Williams - 17/Mar/08 08:59 AM
Status Open [ 1 ] Awaiting User Response [ 10001 ]

Change by Dzso Pengo - 17/Mar/08 09:24 AM
Attachment .log [ 10732 ]

Change by Chris Williams - 20/Mar/08 12:16 PM
Link This issue is duplicated by ROR-699 [ ROR-699 ]

Change by Chris Williams - 21/Mar/08 09:57 AM
Link This issue is duplicated by ROR-721 [ ROR-721 ]

Change by Chris Williams - 21/Mar/08 10:00 AM
Status Awaiting User Response [ 10001 ] Open [ 1 ]

Change by Chris Williams - 21/Mar/08 10:36 AM
Status Open [ 1 ] Awaiting User Response [ 10001 ]

Change by Chris Williams - 24/Mar/08 09:48 AM
Link This issue is duplicated by ROR-718 [ ROR-718 ]

Change by Lele Forzani - 25/Mar/08 04:35 AM
Attachment eclipse_mb_crash_log [ 10790 ]

Change by Chris Williams - 25/Mar/08 01:01 PM
Link This issue is duplicated by ROR-740 [ ROR-740 ]

Change by Chris Williams - 25/Mar/08 07:36 PM
Status Awaiting User Response [ 10001 ] Open [ 1 ]

Change by torneco - 26/Mar/08 12:41 AM
Attachment error01_ROR-699.rb [ 10796 ]

Change by Chris Williams - 26/Mar/08 11:07 AM
Attachment jruby.jar [ 10799 ]

Change by Chris Williams - 26/Mar/08 11:11 AM
Status Open [ 1 ] In Progress [ 3 ]

Change by Chris Williams - 26/Mar/08 11:36 AM
Attachment jruby.jar [ 10799 ]

Change by Chris Williams - 26/Mar/08 11:45 AM
Status In Progress [ 3 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]

Change by Chris Williams - 01/Apr/08 08:00 PM
Assignee Chris Williams [ cwilliams ] Dima Geller [ dgeller ]

Change by Chris Williams - 02/Apr/08 01:58 PM
Link This issue is duplicated by ROR-769 [ ROR-769 ]

Change by Dima Geller - 10/Apr/08 05:36 PM
Status Resolved [ 5 ] Awaiting User Response [ 10001 ]

Change by Dima Geller - 10/Apr/08 05:37 PM
Assignee Dima Geller [ dgeller ] Chris Williams [ cwilliams ]

Change by Ingo Muschenetz - 27/May/08 05:38 PM
Workflow External-Open [ 13452 ] External-Open v2 [ 15253 ]