similar to: an advice for menu navigation.

Displaying 20 results from an estimated 70000 matches similar to: "an advice for menu navigation."

2009 Dec 23
3
Help with Navigation
I''m currently using CSS to style my navigational menu. I also have jquery at my disposal. The basic structure is like this: <div id="nav"> <div class="inner-container"> <div id="wrap"> <div class="inner"> <h2> <span class="h-ico
2011 Nov 15
3
create e menu for navigation.
Do you know if there is a gem for creating menu navigations? I''ve tried simple_navigation but it''s too simple. I like menu navigation of active_admin gem but I don''t know how to create it. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2013 Jul 04
1
simple-navigation items from database
Hello, i would like to ask how can i generate menu items from database using simple-navigation ? i was looking in documentation https://github.com/andi/simple-navigation/wiki/Dynamic-Navigation-Items but i dont get it. i have default config/navigation.rb SimpleNavigation::Configuration.run do |navigation| ... end and i have database categories id category_id name how can i generate a
2010 Sep 26
2
Rails 3 - Loading a Subnav with Ajax… Which controller owns a subnav?
Once my Rails 3 app is loaded, a user can click an item which needs to then load a dynamic subnav. My thinking is (since it needs to be dynamic) is onClick to make a jQuery AJAX call to the server and then to inject the HTML response into a DIV on the page... What I''d like your advice on is how/where the subnav logic should live in the rails app, as I don''t have a navigation
2012 Apr 09
0
Autocomplete text-field version of dynamic select menu?
I have a form for submission of brand, model, and style. Style belongs_to model, and model belongs_to brand. The form is actually a style submission form, but allows users to create new brands or models as well, should they not exist. What I want is for the autocomplete for ''model'' to populate when an object for ''brand'' is selected in the first text field..
2011 Jan 08
9
options_for_select.
Even reading the documentation I can not figure out what is the select_tag difference between this: <% = select_tag (bags [], "options_for_select (bags.collect @ {| bb | [bb.bag_type, bb.id]}, ruser.bags.collect @ {| ub | ub.id}), {: multiple => true,: id => "bags"})%> and this: <% = select_tag "bags [], " options_for_select (bags.collect @ {| bb
2012 Nov 14
8
right click or Context Menu in ruby without javascript
Hi, This query is a replica of the link http://railsforum.com/viewtopic.php?id=51231. As I was unable to get any replies from the rails forum, I am posting the same here. I have developed an app using Rails 3. I have a table made to look like a calendar. I wanted to know if there were any methods or gems to acheive right click(context menu) action on the dates WITHOUT javascripts or
2011 Apr 05
6
How to achieve Google Reader-like layout in Rails?
Hi I''m trying to create a web application with a UI that is fundamentally similar to Google Reader, in Rails 3 and probably with some Javascript toolkit (jQuery?). I''m new to web development (my background is in desktop application development), however, and after some experimentation with CSS layout I''m frankly unsure of how to achieve the desired layout. Therefore
2010 Jan 22
0
dynamic select menu doesn't work for 'form_tag'
Hi everyone, I have tried with the dynamic menu using "http://railscasts.com/episodes/88-dynamic-select-menus " site. i implemented and it was working fine for ''form_for'' tag. But i need to do the same function with ''form_tag'' as like as, <% javascript ''dynamic_states'' %> <%form_tag do%> <p> <label
2012 Aug 29
7
custom js in rails project
Hello, I have a rails project with one controller and one action, as simple as posible. And I''m trying to put some custom css and js to my own index.html.erb (not public/index.html.erb), I inluded this on the layout file: layout file: <!DOCTYPE html> <html> <head> <title>Volei</title> <%= stylesheet_link_tag "application", :media =>
2011 Jun 15
5
rails 3.0.9
Today was expected the new stable rails release 3.0.9 with some fixed, among all the problem with escape_javascript. It seems that it see that has not been released, unfortunately. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2010 May 25
2
Site Navigation With Polymorphic Has Many Through
Hi, seem to keep running into a wall here. I can''t find any resources on site navigation that can deal with any model being in the nav, allow nesting, and can dynamically update. So I thought about it for a while, and decided on a MenuItems class, which contained the position of the child in relation to it''s siblings, where the parent and the child were polymorphic. Then a given
2011 Aug 10
3
javascript_include_tag error
<!DOCTYPE html> <html> <head> <title><%= @title %></title> <%= csrf_meta_tag %> <%= javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js", "jquery.rails.js" %> <script type="text/javascript"> ...app/views/layouts/application.html.erb:7: syntax error, unexpected
2010 Dec 25
6
undefined local variable or method?
I have: <%= form_for(@supplier) do |f| %> ....... ...... <%= render ''sector_categories'', :locals => {:f => f} %> in _sector_categories partial I have: <div class="field"> <div id="category_update"> <% for category in @categories %> <%= f.check_box :category_ids[], category.id,
2011 May 25
1
trouble using jQuery in Rails 3.0.7
I''ve tried to install JQuery a couple of times now, and I''ve followed the steps for Rails UJS mentioned here: https://github.com/rails/jquery-ujs The last time I went ahead and added jQuery UI as well: $ rails generate jquery:install --ui remove public/javascripts/prototype.js remove public/javascripts/effects.js remove public/javascripts/dragdrop.js
2012 Nov 26
8
why functional test does not get failure?
The test: test "should get new" do get :new, :room_id => @room.name assert_template(:ne) end the template new does not exists but the test does not get failure. Why? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2011 May 04
1
Why do I sometimes have to refresh the page manually after an AJAX form submission?
When I do remote form submits through jQuery .submit() why do I sometimes have to refresh the page manually to see the results? My jQuery handler is very simple: $("#vote_yes").click(function() { $("#approval").val(true) $(".edit_vote").submit() }); And the link that leverages this bit of code is as follows: <%= link_to("Vote
2012 May 10
6
Is it suitable using STI?
I have problems on a simple design problem. I have many companies. Each company have one or more commercial activity. Activities types are: ecommerce, local unit, television, automatic vending machines, and so on. Company may have one or more ecommerce activity or one or more local unit activity, one ormore vending machines, etc. How can I model this scenario? Company has_many ecommerce has_many
2011 Jun 19
10
validates_numercality_of with allow_nil.
In the model I have: validates :square_meters_public_land, :barrier_meters, :numericality => { :greater_than_or_equal_to => 0 }, :allow_nil => true but if, in the field, on create, I don''t insert a value I have the error "field is not a number". -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To
2010 Jul 12
1
newbie: what is preferred approach for including javascript files?
Hi, What is the cost of not cacheing javascript? If that cost is serious, do I prefer to selectively include javascript files only for view where they are needed? In other words I see four options: 1) Cache everything in layouts/application.html.erb and don''t worry about selective inclusion of .js files where they are needed; 2) cache some things in (e.g., dependencies like jquery) and