something very odd is going on, when I put in the url
http://mysite/blabla/bla/21
it will only see the 2 and ignore the 1 instead of getting the full id "21"
obviously this is causing a lot of issues in my application.. I am looking and looking and cant find whats going on..
any ideas what im doing wrong? I have look all over..
here is some code snips
def roster
@authreg_in = session[:authreg]
@name = Authreg.find(params[:id])
name2 = (@name.username + "@" + @name.realm)
@amigos = Rosteritems.find( :all, :conditions => { :"collection-owner" => "#{name2}" })
end
<%= @name.id %> <!-- this is to debug ->
<%= @authreg_in %> <!-- this is to debug ->
<% if @name.id == @authreg_in || @authreg_in == 1 %>
<table id="authregs">
<tr>
<th>JID</th>
</tr>
<% @amigos.each_index do |amigo| %>
<tr class="<%= cycle('odd', 'even') -%>">
<td><%= @amigos[amigo].jid %></td>
</tr>
<% end %>
</table>
<% else %>
<p>you are trying to see someones elses roster!!!<p>
<% end %>